/* ================================================
   myip.com.tr - Network Araçları
   Modern UI Stylesheet
   ================================================ */

/* ---- Fonts & Variables ---- */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --color-muted: #626262;
}

[data-theme="dark"] {
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.06);
    --color-muted: #c8c8c8;
}

/* ---- Reset & Base ---- */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(99, 102, 241, 0.25);
    color: inherit;
}

/* Smooth transitions for theme switch */
body, nav, footer, main,
.ip-card, .tool-card, .result-card {
    transition: background-color var(--transition),
                color var(--transition),
                border-color var(--transition),
                box-shadow var(--transition);
}

/* ---- Navbar ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .navbar {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Logo Icon */
.logo-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
    transition: transform var(--transition), box-shadow var(--transition);
}

a:hover .logo-icon {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}

.logo-icon-sm {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav Links */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    color: #64748b;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}

[data-theme="dark"] .nav-link {
    color: #94a3b8;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: #1e293b;
}

[data-theme="dark"] .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.nav-link-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.08));
    color: #4f46e5;
    font-weight: 600;
}

[data-theme="dark"] .nav-link-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(59, 130, 246, 0.1));
    color: #818cf8;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748b;
    gap: 0.375rem;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.06);
    color: #334155;
}

[data-theme="dark"] .lang-btn {
    color: #94a3b8;
}

[data-theme="dark"] .lang-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

/* Theme Toggle */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Mobile Menu */
.mobile-menu-inner {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

[data-theme="dark"] .mobile-menu-inner {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.625rem;
    color: #64748b;
    transition: all var(--transition);
}

[data-theme="dark"] .mobile-nav-link {
    color: #94a3b8;
}

.mobile-nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1e293b;
}

[data-theme="dark"] .mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.mobile-nav-link-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.08));
    color: #4f46e5;
    font-weight: 600;
}

[data-theme="dark"] .mobile-nav-link-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(59, 130, 246, 0.1));
    color: #818cf8;
}

/* ---- Hero Background ---- */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 70% 10%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

[data-theme="dark"] .hero-bg {
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 70% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

/* ---- IP Card ---- */
.ip-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    max-width: 42rem;
    margin: 0 auto;
    overflow: hidden;
}

[data-theme="dark"] .ip-card {
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02),
                0 20px 50px -12px rgba(0, 0, 0, 0.4);
}

.ip-card-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08), transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .ip-card-glow {
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15), transparent 70%);
}

/* IP Text */
.ip-text {
    font-family: var(--font-mono);
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f172a;
    line-height: 1.1;
}

[data-theme="dark"] .ip-text {
    color: #f1f5f9;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

/* Copy Button */
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    color: #94a3b8;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    font-size: 1rem;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .copy-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #64748b;
}

[data-theme="dark"] .copy-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: rgba(16, 185, 129, 0.3);
    color: #059669;
}

[data-theme="dark"] .copy-btn.copied {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

/* Copy Feedback */
.copy-feedback {
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #059669;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] .copy-feedback {
    color: #6ee7b7;
}

/* Hero Divider, Description & CTA */
.hero-divider-sm {
    width: 3rem;
    height: 1px;
    margin: 0.875rem auto;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.hero-desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 26rem;
    margin: 0 auto 1rem;
}

[data-theme="dark"] .hero-desc {
    color: #94a3b8;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.625rem;
    color: white;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: all var(--transition);
    text-decoration: none;
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.625rem;
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all var(--transition);
    text-decoration: none;
}

.hero-btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

[data-theme="dark"] .hero-btn-secondary {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .hero-btn-secondary:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3125rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    border: 1px solid transparent;
}

.badge-active {
    background: rgba(16, 185, 129, 0.06);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .badge-active {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.06);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.2);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .badge-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.2);
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .badge-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.2);
}

/* Cache Clear Button */
.cache-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.06);
    color: #3b82f6;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cache-clear-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.5);
}

.cache-clear-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cache-clear-module {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.06);
}

.cache-clear-module:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.5);
}

[data-theme="dark"] .cache-clear-btn {
    border-color: rgba(96, 165, 250, 0.25);
    background: rgba(96, 165, 250, 0.08);
    color: #60a5fa;
}

[data-theme="dark"] .cache-clear-btn:hover {
    background: rgba(96, 165, 250, 0.15);
    color: #93bbfd;
    border-color: rgba(96, 165, 250, 0.4);
}

[data-theme="dark"] .cache-clear-btn.cache-clear-module {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
}

[data-theme="dark"] .cache-clear-btn.cache-clear-module:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

/* ---- Links ---- */
.link {
    color: #4c70b9;
    text-decoration: none;
    font-weight: 500;
    transition: color 150ms ease, opacity 150ms ease;
}

.link:hover {
    color: #4f46e5;
    text-decoration: none;
}

[data-theme="dark"] .link {
    color: #769bb6;
}

[data-theme="dark"] .link:hover {
    color: #c7d2fe;
}

/* ---- Tool Cards ---- */
.tool-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(59, 130, 246, 0.02));
    opacity: 0;
    transition: opacity var(--transition);
}

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

.tool-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08),
                0 0 0 1px rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

[data-theme="dark"] .tool-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .tool-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1),
                0 0 0 1px rgba(99, 102, 241, 0.08);
}

.tool-card-icon-wrapper {
    flex-shrink: 0;
}

.tool-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(59, 130, 246, 0.06));
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.tool-card:hover .tool-card-icon {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

[data-theme="dark"] .tool-card-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(59, 130, 246, 0.1));
    color: #a5b4fc;
}

[data-theme="dark"] .tool-card:hover .tool-card-icon {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: white;
}

.tool-card-arrow {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #cbd5e1;
    transition: all var(--transition);
}

.tool-card:hover .tool-card-arrow {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    transform: translateX(2px);
}

[data-theme="dark"] .tool-card-arrow {
    color: #475569;
}

[data-theme="dark"] .tool-card:hover .tool-card-arrow {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
}

/* ---- Footer ---- */
.footer-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.5);
    margin-top: auto;
}

[data-theme="dark"] .footer-section {
    border-top-color: rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.2);
}

/* ---- Modül Genel Stiller ---- */

/* Input Group */
.input-group {
    display: flex;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    transition: all var(--transition);
}

.input-group:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .input-group {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .input-group:focus-within {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

.input-group input {
    flex: 1;
    padding: 0.8125rem 1rem;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    background: transparent;
    color: #0f172a;
}

[data-theme="dark"] .input-group input {
    color: #e2e8f0;
}

.input-group input::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .input-group input::placeholder {
    color: #475569;
}

.input-group button {
    padding: 0.8125rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.input-group button:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.input-group button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Result Card */
.result-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

[data-theme="dark"] .result-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

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

/* Alerts */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 1rem;
    border: 1px solid transparent;
}

.alert-error {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

[data-theme="dark"] .alert-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.15);
    color: #059669;
}

[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.alert-info {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.15);
    color: #4f46e5;
}

[data-theme="dark"] .alert-info {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* ---- Animations ---- */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out both;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out both;
}

.animate-fade-in-up-delay {
    animation: fade-in-up 0.6s ease-out 0.15s both;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #334155;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ---- WHOIS Modülü ---- */

/* Tabs */
.whois-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0.75rem;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .whois-tabs {
    background: rgba(255, 255, 255, 0.04);
}

.whois-tab {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.625rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-sans);
}

.whois-tab:hover {
    color: #334155;
}

[data-theme="dark"] .whois-tab:hover {
    color: #e2e8f0;
}

.whois-tab.active {
    background: white;
    color: #4f46e5;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .whois-tab.active {
    background: rgba(255, 255, 255, 0.06);
    color: #a5b4fc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* WHOIS Table */
.whois-table {
    width: 100%;
    border-collapse: collapse;
}

.whois-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background-color var(--transition);
}

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

.whois-table tr:hover {
    background: rgba(0, 0, 0, 0.015);
}

[data-theme="dark"] .whois-table tr {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .whois-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.whois-table td {
    padding: 0.625rem 0.5rem;
    font-size: 0.8125rem;
    vertical-align: top;
}

.whois-table td:first-child {
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    width: 11rem;
    padding-right: 1.5rem;
}

[data-theme="dark"] .whois-table td:first-child {
    color: #94a3b8;
}

.whois-table td:last-child {
    color: #1e293b;
    word-break: break-all;
}

[data-theme="dark"] .whois-table td:last-child {
    color: #e2e8f0;
}

/* Raw Output */
.whois-raw {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0.625rem;
    padding: 1rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.65;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 32rem;
    overflow-y: auto;
    margin: 0;
}

[data-theme="dark"] .whois-raw {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
}

/* Copy Raw Button */
.copy-raw-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all var(--transition);
}

.copy-raw-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.04);
}

[data-theme="dark"] .copy-raw-btn {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
}

[data-theme="dark"] .copy-raw-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.08);
}

/* WHOIS Status Badge */
.whois-status {
    display: inline-block;
    padding: 0.175rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 0.375rem;
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.12);
    margin: 0.125rem 0.25rem 0.125rem 0;
    line-height: 1.4;
}

[data-theme="dark"] .whois-status {
    background: rgba(129, 140, 248, 0.1);
    color: #a5b4fc;
    border-color: rgba(129, 140, 248, 0.15);
}

/* WHOIS Date Relative */
.whois-date-relative {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.06);
    padding: 0.125rem 0.4rem;
    border-radius: 0.25rem;
    margin-left: 0.375rem;
}

[data-theme="dark"] .whois-date-relative {
    color: #a5b4fc;
    background: rgba(129, 140, 248, 0.1);
}

/* WHOIS Country Code */
.whois-country-code {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 400;
}

[data-theme="dark"] .whois-country-code {
    color: #64748b;
}

/* WHOIS Link */
.whois-link {
    color: #4f46e5;
    text-decoration: none;
    border-bottom: 1px dashed rgba(79, 70, 229, 0.3);
    transition: all var(--transition);
}

.whois-link:hover {
    color: #4338ca;
    border-bottom-style: solid;
}

[data-theme="dark"] .whois-link {
    color: #a5b4fc;
    border-bottom-color: rgba(165, 180, 252, 0.3);
}

[data-theme="dark"] .whois-link:hover {
    color: #c7d2fe;
    border-bottom-color: rgba(199, 210, 254, 0.5);
}

/* ================================================
   DNS Modülü
   ================================================ */

/* DNS Tabs */
.dns-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dns-tabs::-webkit-scrollbar { display: none; }

.dns-tab {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #64748b;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all var(--transition);
}

.dns-tab:hover {
    color: #4f46e5;
}

.dns-tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

[data-theme="dark"] .dns-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .dns-tab {
    color: #94a3b8;
}

[data-theme="dark"] .dns-tab:hover,
[data-theme="dark"] .dns-tab.active {
    color: #a5b4fc;
    border-bottom-color: #a5b4fc;
}

/* Tab Count Badge */
.dns-tab-count {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 0.0625rem 0.375rem;
    border-radius: 9999px;
    margin-left: 0.25rem;
    min-width: 1.125rem;
    text-align: center;
}

[data-theme="dark"] .dns-tab-count {
    background: rgba(129, 140, 248, 0.15);
    color: #a5b4fc;
}

/* Score Gauge */
.dns-score-gauge {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}

.dns-score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.dns-score-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.05);
    stroke-width: 8;
}

[data-theme="dark"] .dns-score-bg {
    stroke: rgba(255, 255, 255, 0.06);
}

.dns-score-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease, stroke 0.5s ease;
}

.dns-score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
}

.dns-score-green { stroke: #10b981; color: #10b981; }
.dns-score-yellow { stroke: #f59e0b; color: #f59e0b; }
.dns-score-red { stroke: #ef4444; color: #ef4444; }

/* Category Bars */
.dns-category-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dns-category-label {
    width: 5.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .dns-category-label {
    color: #94a3b8;
}

.dns-category-bar-bg {
    flex: 1;
    height: 0.4375rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
    overflow: hidden;
}

[data-theme="dark"] .dns-category-bar-bg {
    background: rgba(255, 255, 255, 0.06);
}

.dns-category-bar-fill {
    height: 100%;
    border-radius: 9999px;
    width: 0;
    transition: width 1s ease, background 0.5s ease;
}

.dns-category-value {
    width: 1.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #475569;
    text-align: right;
}

[data-theme="dark"] .dns-category-value {
    color: #cbd5e1;
}

/* DNS Record Table */
.dns-record-table {
    width: 100%;
    border-collapse: collapse;
}

.dns-record-table th {
    text-align: left;
    padding: 0.5rem;
    font-size: 0.675rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .dns-record-table th {
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: #64748b;
}

.dns-record-table td {
    padding: 0.5rem;
    font-size: 0.8125rem;
    color: #1e293b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    vertical-align: top;
}

[data-theme="dark"] .dns-record-table td {
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.03);
}

.dns-record-table td.dns-ttl {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
}

.dns-soa-label {
    font-weight: 600;
    color: #475569 !important;
    white-space: nowrap;
    width: 8rem;
}

[data-theme="dark"] .dns-soa-label {
    color: #94a3b8 !important;
}

.dns-txt-value {
    word-break: break-all;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.dns-priority-badge {
    display: inline-block;
    font-size: 0.675rem;
    font-weight: 700;
    font-family: var(--font-mono);
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    padding: 0.0625rem 0.375rem;
    border-radius: 0.25rem;
}

[data-theme="dark"] .dns-priority-badge {
    background: rgba(129, 140, 248, 0.1);
    color: #a5b4fc;
}

/* A Record host cell */
.dns-host-cell {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
    min-width: 60px;
}

[data-theme="dark"] .dns-host-cell {
    color: #a5b4fc;
}

tr.dns-subdomain-row td {
    border-top: 1px dashed #e5e7eb;
}

tr:not(.dns-subdomain-row) + tr.dns-subdomain-row td {
    border-top: 2px solid #e2e8f0;
}

[data-theme="dark"] tr.dns-subdomain-row td {
    border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] tr:not(.dns-subdomain-row) + tr.dns-subdomain-row td {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Record Panel */
.dns-record-panel {
    padding: 0.25rem 0;
}

/* NS Comparison */
.dns-ns-status {
    display: flex;
    align-items: center;
}

.dns-ns-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1px solid transparent;
}

.dns-ns-match {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .dns-ns-match {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.2);
}

.dns-ns-mismatch {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .dns-ns-mismatch {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

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

.dns-ns-table th {
    text-align: left;
    padding: 0.5rem 0.625rem;
    font-size: 0.675rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .dns-ns-table th {
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: #64748b;
}

.dns-ns-table td {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    color: #1e293b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

[data-theme="dark"] .dns-ns-table td {
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.03);
}

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

.dns-ns-row-only-dns td:nth-child(2),
.dns-ns-row-only-whois td:nth-child(1) {
    opacity: 0.5;
}

/* Analysis Groups */
.dns-analysis-group {
    margin-bottom: 1.25rem;
    padding: 0 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

[data-theme="dark"] .dns-analysis-group {
    border-color: rgba(255, 255, 255, 0.06);
}

.dns-analysis-group:last-child {
    margin-bottom: 0;
}

.dns-analysis-group-header {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .dns-analysis-group-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.dns-analysis-group-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #374151;
}

[data-theme="dark"] .dns-analysis-group-title {
    color: #e5e7eb;
}

/* Test Item */
.dns-test-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

[data-theme="dark"] .dns-test-item {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

/* Status badge */
.dns-test-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 0;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
    min-width: 5.5rem;
    width: 5.5rem;
}

/* Test body */
.dns-test-body {
    flex: 1;
    min-width: 0;
}

.dns-test-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
}

[data-theme="dark"] .dns-test-title {
    color: #e2e8f0;
}

.dns-test-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.5;
}

[data-theme="dark"] .dns-test-desc {
    color: #94a3b8;
}

.dns-test-details {
    display: block;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: #64748b;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    padding: 6px 10px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

[data-theme="dark"] .dns-test-details {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
}

/* Legend */
.dns-analysis-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 0;
    margin-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

[data-theme="dark"] .dns-analysis-legend {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.dns-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    font-weight: 600;
}

/* Subdomain Grid */
.dns-subdomain-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
}

.dns-subdomain-card {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}

.dns-subdomain-card.found {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.02);
}

.dns-subdomain-card.not-found {
    opacity: 0.55;
}

[data-theme="dark"] .dns-subdomain-card {
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .dns-subdomain-card.found {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.04);
}

/* ---- SPF Analizi ---- */
.spf-record-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

[data-theme="dark"] .spf-record-box {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.spf-record-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    color: #64748b;
    margin-bottom: 0.375rem;
}

[data-theme="dark"] .spf-record-label {
    color: #94a3b8;
}

.spf-record-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #334155;
    word-break: break-all;
    line-height: 1.5;
}

[data-theme="dark"] .spf-record-value {
    color: #cbd5e1;
}

.spf-section {
    margin-top: 1.25rem;
}

.spf-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

[data-theme="dark"] .spf-section-title {
    color: #e5e7eb;
}

.spf-ip-count {
    background: #3b82f6;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.375rem;
}

/* SPF Tree */
.spf-tree-node {
    position: relative;
}

.spf-tree-child {
    margin-left: 1.25rem;
    padding-left: 1rem;
    border-left: 2px solid #e2e8f0;
    margin-top: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

[data-theme="dark"] .spf-tree-child {
    border-left-color: rgba(255, 255, 255, 0.1);
}

.spf-tree-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0;
}

.spf-tree-domain {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e40af;
}

[data-theme="dark"] .spf-tree-domain {
    color: #60a5fa;
}

.spf-tree-record {
    margin-top: 0.125rem;
    margin-bottom: 0.25rem;
}

.spf-tree-record code {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #64748b;
    word-break: break-all;
    line-height: 1.4;
}

[data-theme="dark"] .spf-tree-record code {
    color: #94a3b8;
}

.spf-tree-error {
    font-size: 0.75rem;
    color: #f59e0b;
    margin-top: 0.25rem;
}

.spf-tree-children {
    margin-top: 0.25rem;
}

/* SPF Mechanism Badges */
.spf-mech-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.spf-mech-ip4 {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

[data-theme="dark"] .spf-mech-ip4 {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.spf-mech-ip6 {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

[data-theme="dark"] .spf-mech-ip6 {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.spf-mech-a {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

[data-theme="dark"] .spf-mech-a {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.spf-mech-mx {
    background: rgba(168, 85, 247, 0.1);
    color: #7c3aed;
}

[data-theme="dark"] .spf-mech-mx {
    background: rgba(168, 85, 247, 0.15);
    color: #a78bfa;
}

.spf-mech-exists, .spf-mech-ptr {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
}

[data-theme="dark"] .spf-mech-exists,
[data-theme="dark"] .spf-mech-ptr {
    background: rgba(107, 114, 128, 0.15);
    color: var(--color-muted);
}

.spf-all-pass {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.spf-all-fail {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.spf-all-soft {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.spf-all-neutral {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

[data-theme="dark"] .spf-all-pass {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

[data-theme="dark"] .spf-all-fail {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

[data-theme="dark"] .spf-all-soft {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

[data-theme="dark"] .spf-all-neutral {
    background: rgba(107, 114, 128, 0.15);
    color: var(--color-muted);
}

.spf-ip-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

[data-theme="dark"] .spf-ip-badge {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
}

/* SPF IP Table */
.spf-ip-table {
    margin-top: 0.5rem;
}

.spf-ip-table td:first-child {
    min-width: 140px;
}

.spf-rdns-cell {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #64748b;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="dark"] .spf-rdns-cell {
    color: #94a3b8;
}

/* DNS Suggestion Box (DMARC/DKIM öneri) */
.dns-suggestion-box {
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
}

.dns-suggestion-warn {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .dns-suggestion-warn {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.15);
}

.dns-suggestion-header {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .dns-suggestion-header {
    color: #fbbf24;
}

.dns-suggestion-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .dns-suggestion-desc {
    color: var(--color-muted);
}

.dns-suggestion-record {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
}

[data-theme="dark"] .dns-suggestion-record {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

/* ================================================
   SSL Modülü
   ================================================ */

/* SSL Score Gauge */
.ssl-score-gauge {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}

.ssl-score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ssl-score-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.05);
    stroke-width: 8;
}

[data-theme="dark"] .ssl-score-bg {
    stroke: rgba(255, 255, 255, 0.06);
}

.ssl-score-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease, stroke 0.5s ease;
}

.ssl-score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
}

.ssl-score-green { stroke: #10b981; color: #10b981; }
.ssl-score-yellow { stroke: #f59e0b; color: #f59e0b; }
.ssl-score-red { stroke: #ef4444; color: #ef4444; }

/* SSL Notes */
.ssl-note-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
}

.ssl-note-item i {
    flex-shrink: 0;
    font-size: 0.75rem;
}

.ssl-note-item span {
    color: #374151;
}

[data-theme="dark"] .ssl-note-item span {
    color: #d1d5db;
}

/* SSL Info Table */
.ssl-info-table {
    width: 100%;
    border-collapse: collapse;
}

.ssl-info-table td {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: top;
}

[data-theme="dark"] .ssl-info-table td {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

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

.ssl-info-label {
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    width: 10rem;
}

[data-theme="dark"] .ssl-info-label {
    color: #94a3b8;
}

.ssl-info-value {
    color: #1e293b;
    word-break: break-all;
}

[data-theme="dark"] .ssl-info-value {
    color: #e2e8f0;
}

.ssl-cipher-value {
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* SSL TLS Grade Badge */
.ssl-tls-grade {
    display: inline-block;
    font-size: 0.675rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ssl-grade-safe {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

[data-theme="dark"] .ssl-grade-safe {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.ssl-grade-weak {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

[data-theme="dark"] .ssl-grade-weak {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.ssl-grade-insecure {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

[data-theme="dark"] .ssl-grade-insecure {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* SSL SAN Badges */
.ssl-san-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.ssl-san-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.06);
    color: #4f46e5;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

[data-theme="dark"] .ssl-san-badge {
    background: rgba(129, 140, 248, 0.1);
    color: #a5b4fc;
    border-color: rgba(129, 140, 248, 0.15);
}

/* SSL Expiry */
.ssl-expiry-info {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.ssl-expiry-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ssl-expiry-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1875rem 0.625rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ssl-expiry-ok {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

[data-theme="dark"] .ssl-expiry-ok {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.ssl-expiry-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

[data-theme="dark"] .ssl-expiry-medium {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.ssl-expiry-high {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}

[data-theme="dark"] .ssl-expiry-high {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

.ssl-expiry-critical {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

[data-theme="dark"] .ssl-expiry-critical {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.ssl-expiry-expired {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

[data-theme="dark"] .ssl-expiry-expired {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.ssl-expiry-days {
    font-size: 0.8125rem;
    color: #475569;
}

.ssl-expiry-days strong {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.25rem;
}

[data-theme="dark"] .ssl-expiry-days {
    color: #cbd5e1;
}

.ssl-expiry-bar {
    height: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
    overflow: hidden;
}

[data-theme="dark"] .ssl-expiry-bar {
    background: rgba(255, 255, 255, 0.06);
}

.ssl-expiry-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 1s ease;
}

.ssl-expiry-fill.ssl-expiry-ok { background: #10b981; }
.ssl-expiry-fill.ssl-expiry-medium { background: #f59e0b; }
.ssl-expiry-fill.ssl-expiry-high { background: #f97316; }
.ssl-expiry-fill.ssl-expiry-critical { background: #ef4444; }
.ssl-expiry-fill.ssl-expiry-expired { background: #ef4444; }

.ssl-expiry-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #94a3b8;
}

[data-theme="dark"] .ssl-expiry-labels {
    color: #64748b;
}

/* SSL Chain */
.ssl-chain-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ssl-chain-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
}

.ssl-chain-complete {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .ssl-chain-complete {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.2);
}

.ssl-chain-incomplete {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .ssl-chain-incomplete {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.ssl-chain-length {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

[data-theme="dark"] .ssl-chain-length {
    color: #94a3b8;
}

.ssl-chain-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ssl-chain-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.01);
    transition: all var(--transition);
}

[data-theme="dark"] .ssl-chain-item {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.ssl-chain-leaf {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.03);
}

[data-theme="dark"] .ssl-chain-leaf {
    border-color: rgba(129, 140, 248, 0.2);
    background: rgba(129, 140, 248, 0.05);
}

.ssl-chain-root {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.03);
}

[data-theme="dark"] .ssl-chain-root {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}

.ssl-chain-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.ssl-chain-leaf .ssl-chain-icon {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

[data-theme="dark"] .ssl-chain-leaf .ssl-chain-icon {
    background: rgba(129, 140, 248, 0.15);
    color: #a5b4fc;
}

.ssl-chain-intermediate .ssl-chain-icon {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

[data-theme="dark"] .ssl-chain-intermediate .ssl-chain-icon {
    background: rgba(107, 114, 128, 0.15);
    color: var(--color-muted);
}

.ssl-chain-root .ssl-chain-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

[data-theme="dark"] .ssl-chain-root .ssl-chain-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.ssl-chain-details {
    flex: 1;
    min-width: 0;
}

.ssl-chain-subject {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
}

[data-theme="dark"] .ssl-chain-subject {
    color: #e2e8f0;
}

.ssl-chain-issuer,
.ssl-chain-expires {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
}

[data-theme="dark"] .ssl-chain-issuer,
[data-theme="dark"] .ssl-chain-expires {
    color: #94a3b8;
}

.ssl-chain-connector {
    display: flex;
    justify-content: center;
    padding: 0.25rem 0;
    color: #cbd5e1;
    font-size: 0.75rem;
}

[data-theme="dark"] .ssl-chain-connector {
    color: #475569;
}

/* ================================================
   Subnet Calculator
   ================================================ */

/* Subnet Info Table */
.subnet-info-table {
    width: 100%;
    border-collapse: collapse;
}

.subnet-info-table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: top;
}

[data-theme="dark"] .subnet-info-table td {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

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

.subnet-info-label {
    width: 40%;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

[data-theme="dark"] .subnet-info-label {
    color: #94a3b8;
}

.subnet-info-value {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: #1e293b;
    word-break: break-all;
}

[data-theme="dark"] .subnet-info-value {
    color: #e2e8f0;
}

.subnet-info-value.subnet-info-numeric {
    font-family: var(--font-sans);
    font-weight: 600;
}

/* IP Class Badge */
.subnet-class-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(59, 130, 246, 0.1));
    color: #4f46e5;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .subnet-class-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(59, 130, 246, 0.15));
    color: #a5b4fc;
}

/* CIDR Select Dropdown */
.input-group select#subnet-cidr-select {
    width: auto;
    min-width: 4.5rem;
    padding: 0.8125rem 0.5rem;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.04);
    cursor: pointer;
    appearance: auto;
    transition: background var(--transition), color var(--transition);
}

.input-group select#subnet-cidr-select:hover {
    background: rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .input-group select#subnet-cidr-select {
    border-left-color: rgba(255, 255, 255, 0.08);
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .input-group select#subnet-cidr-select:hover {
    background: rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .input-group select#subnet-cidr-select option {
    background: #1e293b;
    color: #e2e8f0;
}

/* Binary Visualization */
.subnet-binary-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.subnet-binary-label {
    width: 3rem;
    font-weight: 600;
    font-size: 0.6875rem;
    color: #64748b;
    font-family: var(--font-sans);
    text-align: right;
    flex-shrink: 0;
}

[data-theme="dark"] .subnet-binary-label {
    color: #94a3b8;
}

.subnet-binary-bits {
    letter-spacing: 0.05em;
    line-height: 1.8;
    word-break: break-all;
}

.subnet-bit-network {
    color: #4f46e5;
    font-weight: 700;
    transition: opacity 200ms ease;
}

[data-theme="dark"] .subnet-bit-network {
    color: #818cf8;
}

.subnet-bit-host {
    color: #94a3b8;
    font-weight: 400;
    transition: opacity 200ms ease;
}

[data-theme="dark"] .subnet-bit-host {
    color: #475569;
}

/* Bit vurgulama: seçili olmayan bitleri soluklaştır */
/* Ağ bitleri vurgulu */
.subnet-binary-bits.highlight-network .subnet-bit-network {
    color: #ffffff;
    background: #4f46e5;
    border-radius: 2px;
    padding: 0 1px;
}

.subnet-binary-bits.highlight-network .subnet-bit-host {
    opacity: 0.15;
}

/* Host bitleri vurgulu */
.subnet-binary-bits.highlight-host .subnet-bit-host {
    color: #ffffff;
    background: #10b981;
    border-radius: 2px;
    padding: 0 1px;
}

.subnet-binary-bits.highlight-host .subnet-bit-network {
    opacity: 0.15;
}

.subnet-bit-dot {
    color: #cbd5e1;
    margin: 0 0.125rem;
}

[data-theme="dark"] .subnet-bit-dot {
    color: #334155;
}

/* Proportional Bar */
.subnet-bit-bar {
    display: flex;
    height: 1.75rem;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.subnet-bit-bar-network,
.subnet-bit-bar-host {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: fit-content;
    padding: 0 0.5rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 200ms ease;
    opacity: 0.7;
}

.subnet-bit-bar-network {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.subnet-bit-bar-host {
    background: #e2e8f0;
    color: #64748b;
}

[data-theme="dark"] .subnet-bit-bar-host {
    background: #1e293b;
    color: #94a3b8;
}

.subnet-bit-bar-network.active,
.subnet-bit-bar-host.active {
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.subnet-bit-bar-network:not(.active):hover,
.subnet-bit-bar-host:not(.active):hover {
    opacity: 0.9;
}

/* Subnet Blocks Table */
.subnet-blocks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.subnet-blocks-table th {
    padding: 0.5rem 0.625rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .subnet-blocks-table th {
    border-bottom-color: rgba(255, 255, 255, 0.06);
    color: #64748b;
}

.subnet-blocks-table td {
    padding: 0.5rem 0.625rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #334155;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .subnet-blocks-table td {
    color: #cbd5e1;
    border-bottom-color: rgba(255, 255, 255, 0.03);
}

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

.subnet-blocks-table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .subnet-blocks-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Active Subnet Row */
.subnet-block-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(59, 130, 246, 0.04)) !important;
    border-left: 3px solid #6366f1;
}

[data-theme="dark"] .subnet-block-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(59, 130, 246, 0.08)) !important;
    border-left-color: #818cf8;
}

.subnet-active-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.0625rem 0.375rem;
    font-size: 0.5625rem;
    font-weight: 700;
    font-family: var(--font-sans);
    border-radius: 9999px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    margin-left: 0.375rem;
}

@media (max-width: 768px) {
    .subnet-active-badge {
        display: none;
    }
}

.subnet-block-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    margin-left: 0.5rem;
}

[data-theme="dark"] .subnet-block-count-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* ================================================
   PORT Module
   ================================================ */

/* ---- Port Ports Field ---- */
.port-ports-field {
    width: 100%;
    padding: 0.6875rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: #1e293b;
    background: white;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.port-ports-field:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .port-ports-field {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .port-ports-field:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

.port-ports-field::placeholder {
    color: #94a3b8;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
}

[data-theme="dark"] .port-ports-field::placeholder {
    color: #64748b;
}

/* ---- Port Preset Pills ---- */
.port-preset-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.75rem;
    justify-content: center;
}

.port-preset-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all var(--transition);
}

.port-preset-pill:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.04);
}

.port-preset-pill.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .port-preset-pill {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

[data-theme="dark"] .port-preset-pill:hover {
    border-color: #818cf8;
    color: #818cf8;
}

[data-theme="dark"] .port-preset-pill.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border-color: transparent;
}

/* ---- Port Summary Grid ---- */
.port-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.port-summary-item {
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .port-summary-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.port-summary-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.375rem;
    color: #1e293b;
}

[data-theme="dark"] .port-summary-number {
    color: #f1f5f9;
}

.port-summary-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .port-summary-label {
    color: #94a3b8;
}

.port-summary-open .port-summary-number {
    color: #10b981;
}

.port-summary-closed .port-summary-number {
    color: #ef4444;
}

.port-resolved-ip {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.8125rem;
    color: #475569;
}

[data-theme="dark"] .port-resolved-ip {
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.port-resolved-label {
    font-weight: 600;
}

/* ---- Port Grid Cards ---- */
.port-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.port-card {
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}

.port-card-open {
    background: rgba(16, 185, 129, 0.04);
    border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .port-card-open {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.port-card-closed {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.04);
    opacity: 0.6;
}

[data-theme="dark"] .port-card-closed {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
    opacity: 0.5;
}

.port-card-number {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.25rem;
}

[data-theme="dark"] .port-card-number {
    color: #f1f5f9;
}

.port-card-service {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.5rem;
    min-height: 1rem;
}

[data-theme="dark"] .port-card-service {
    color: #94a3b8;
}

.port-card-status {
    font-size: 0.75rem;
    font-weight: 600;
}

.port-status-open {
    color: #10b981;
}

.port-status-open i {
    font-size: 0.625rem;
}

.port-status-closed {
    color: #94a3b8;
}

[data-theme="dark"] .port-status-closed {
    color: #64748b;
}

.port-status-closed i {
    font-size: 0.625rem;
}

.port-card-latency {
    font-size: 0.625rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    font-family: var(--font-mono);
}

[data-theme="dark"] .port-card-latency {
    color: #64748b;
}

/* ---- Port Count Badge ---- */
.port-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    margin-left: 0.5rem;
}

[data-theme="dark"] .port-count-badge {
    background: rgba(129, 140, 248, 0.15);
    color: #818cf8;
}

/* ================================================
   PASSWORD Generator
   ================================================ */

/* ---- Options Grid ---- */
.pwd-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pwd-option-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.01);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}

.pwd-option-toggle:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.02);
}

[data-theme="dark"] .pwd-option-toggle {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .pwd-option-toggle:hover {
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.06);
}

.pwd-option-toggle input[type="checkbox"] {
    display: none;
}

.pwd-toggle-slider {
    position: relative;
    width: 2.5rem;
    height: 1.375rem;
    background: #cbd5e1;
    border-radius: 9999px;
    transition: background var(--transition);
    flex-shrink: 0;
}

.pwd-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.125rem;
    height: 1.125rem;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pwd-option-toggle input:checked + .pwd-toggle-slider {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.pwd-option-toggle input:checked + .pwd-toggle-slider::after {
    transform: translateX(1.125rem);
}

[data-theme="dark"] .pwd-toggle-slider {
    background: #334155;
}

.pwd-toggle-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
}

[data-theme="dark"] .pwd-toggle-label {
    color: #94a3b8;
}

/* ---- Length Slider ---- */
.pwd-length-control {
    margin-bottom: 1.5rem;
}

.pwd-length-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .pwd-length-label {
    color: #94a3b8;
}

.pwd-length-number {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.08);
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    min-width: 2rem;
    text-align: center;
}

[data-theme="dark"] .pwd-length-number {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.15);
}

.pwd-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.pwd-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pwd-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.4);
}

.pwd-slider::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .pwd-slider {
    background: #1e293b;
}

/* ---- Generate Button ---- */
.pwd-generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
}

.pwd-generate-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.pwd-generate-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ---- Password Display ---- */
.pwd-display-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .pwd-display-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.06);
}

.pwd-output {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    word-break: break-all;
    line-height: 1.6;
    user-select: all;
    cursor: text;
}

.pwd-uid-output {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-align: center;
    color: #1e293b;
}

[data-theme="dark"] .pwd-uid-output {
    color: #e2e8f0;
}

/* Character coloring */
.pwd-char-upper { color: #4f46e5; }
.pwd-char-lower { color: #1e293b; }
.pwd-char-digit { color: #0891b2; }
.pwd-char-symbol { color: #dc2626; }

[data-theme="dark"] .pwd-char-upper { color: #a5b4fc; }
[data-theme="dark"] .pwd-char-lower { color: #e2e8f0; }
[data-theme="dark"] .pwd-char-digit { color: #67e8f9; }
[data-theme="dark"] .pwd-char-symbol { color: #fca5a5; }

.pwd-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    color: #94a3b8;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    font-size: 0.9375rem;
}

.pwd-copy-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
    background: rgba(99, 102, 241, 0.04);
}

[data-theme="dark"] .pwd-copy-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #64748b;
}

[data-theme="dark"] .pwd-copy-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}

/* ---- Strength Bar ---- */
.pwd-strength-section {
    margin-top: 1rem;
}

.pwd-strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pwd-strength-label {
    font-size: 0.8125rem;
    font-weight: 600;
}

.pwd-entropy-label {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: #64748b;
}

[data-theme="dark"] .pwd-entropy-label {
    color: #94a3b8;
}

.pwd-strength-bar-bg {
    width: 100%;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

[data-theme="dark"] .pwd-strength-bar-bg {
    background: rgba(255, 255, 255, 0.06);
}

.pwd-strength-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.pwd-strength-weak {
    background: linear-gradient(90deg, #ef4444, #f87171);
    color: #ef4444;
}

.pwd-strength-medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #f59e0b;
}

.pwd-strength-strong {
    background: linear-gradient(90deg, #10b981, #34d399);
    color: #10b981;
}

/* ---- Strength Details ---- */
.pwd-strength-details {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
}

.pwd-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0.625rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    color: #64748b;
}

[data-theme="dark"] .pwd-detail-row {
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
}

.pwd-detail-row span:last-child {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #1e293b;
}

[data-theme="dark"] .pwd-detail-row span:last-child {
    color: #e2e8f0;
}

/* ---- UID Section ---- */
.pwd-uid-desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 1rem;
}

[data-theme="dark"] .pwd-uid-desc {
    color: #94a3b8;
}

.pwd-uid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.8125rem;
    font-family: var(--font-sans);
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 1rem;
}

.pwd-uid-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

[data-theme="dark"] .pwd-uid-btn {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .pwd-uid-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
}

.pwd-uid-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pwd-uid-display-wrapper {
    justify-content: center;
}

/* ---- History ---- */
.pwd-history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background var(--transition);
}

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

.pwd-history-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .pwd-history-item {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .pwd-history-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.pwd-history-password {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #334155;
    word-break: break-all;
    user-select: all;
}

[data-theme="dark"] .pwd-history-password {
    color: #cbd5e1;
}

.pwd-history-score {
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: var(--font-mono);
    min-width: 2rem;
    text-align: center;
}

.pwd-history-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all var(--transition);
    font-size: 0.75rem;
}

.pwd-history-copy:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.06);
}

[data-theme="dark"] .pwd-history-copy {
    color: #64748b;
}

[data-theme="dark"] .pwd-history-copy:hover {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .ip-card {
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }

    .ip-text {
        word-break: break-all;
    }

    .whois-table td:first-child {
        width: auto;
        display: block;
        padding-bottom: 0.125rem;
    }

    .whois-table td:last-child {
        display: block;
        padding-top: 0;
        padding-bottom: 0.75rem;
    }

    .whois-table tr {
        display: block;
    }

    .dns-score-gauge {
        width: 100px;
        height: 100px;
    }

    .dns-score-number {
        font-size: 1.75rem;
    }

    .dns-category-label {
        width: 4rem;
    }

    .dns-subdomain-grid {
        grid-template-columns: 1fr;
    }

    .dns-record-table td,
    .dns-record-table th {
        padding: 0.375rem 0.25rem;
        font-size: 0.75rem;
    }

    .ssl-score-gauge {
        width: 100px;
        height: 100px;
    }

    .ssl-score-number {
        font-size: 1.75rem;
    }

    .ssl-info-label {
        width: auto;
        display: block;
        padding-bottom: 0.125rem;
    }

    .ssl-info-value {
        display: block;
        padding-top: 0;
        padding-bottom: 0.75rem;
    }

    .ssl-info-table tr {
        display: block;
    }

    .ssl-san-badge {
        font-size: 0.675rem;
        padding: 0.1875rem 0.5rem;
    }

    .ssl-chain-item {
        padding: 0.5rem;
    }

    .ssl-expiry-days strong {
        font-size: 1rem;
    }

    .subnet-info-label {
        width: auto;
        display: block;
        padding-bottom: 0.125rem;
        font-size: 0.6875rem;
        color: #94a3b8;
    }

    .subnet-info-value {
        display: block;
        padding-top: 0;
        padding-bottom: 0.625rem;
    }

    .subnet-info-table tr {
        display: block;
    }

    .subnet-blocks-table {
        font-size: 0.6875rem;
    }

    .subnet-blocks-table td,
    .subnet-blocks-table th {
        padding: 0.375rem 0.375rem;
    }

    .subnet-binary-bits {
        font-size: 0.6875rem;
    }

    .subnet-bit-bar {
        font-size: 0.5rem;
    }

    /* Port Module Responsive */
    .port-summary-grid {
        gap: 0.5rem;
    }

    .port-summary-number {
        font-size: 1.25rem;
    }

    .port-summary-label {
        font-size: 0.5625rem;
    }

    .port-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .port-card {
        padding: 0.75rem;
    }

    .port-card-number {
        font-size: 1rem;
    }

    .port-preset-pill {
        font-size: 0.625rem;
        padding: 0.1875rem 0.5rem;
    }

    /* Password Module Responsive */
    .pwd-options-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .pwd-output {
        font-size: 0.9375rem;
    }

    .pwd-uid-output {
        font-size: 1rem;
    }

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

    .pwd-length-number {
        font-size: 1rem;
    }
}

/* ================================================
   CSR Generator
   ================================================ */

/* ---- Form Fields ---- */
.csr-field-group {
    margin-bottom: 1rem;
}

.csr-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.375rem;
}

[data-theme="dark"] .csr-label {
    color: #94a3b8;
}

.csr-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: white;
    color: #1e293b;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.csr-input:focus {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .csr-input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .csr-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.csr-input::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .csr-input::placeholder {
    color: #475569;
}

/* ---- Two-column row ---- */
.csr-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ---- Key Size Selector ---- */
.csr-key-selector {
    display: flex;
    gap: 0.5rem;
}

.csr-key-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all var(--transition);
}

.csr-key-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

.csr-key-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .csr-key-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

[data-theme="dark"] .csr-key-btn:hover {
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}

[data-theme="dark"] .csr-key-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-color: transparent;
}

/* ---- Generate Button ---- */
.csr-generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
}

.csr-generate-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.csr-generate-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ---- Result Header ---- */
.csr-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.csr-key-actions {
    display: flex;
    gap: 0.5rem;
}

/* ---- PEM Output ---- */
.csr-pem-output {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: #1e293b;
    max-height: 300px;
    overflow-y: auto;
    user-select: all;
    cursor: text;
    margin: 0;
}

[data-theme="dark"] .csr-pem-output {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.csr-key-masked {
    color: #94a3b8;
    user-select: none;
    cursor: default;
}

[data-theme="dark"] .csr-key-masked {
    color: #475569;
}

/* ---- Copy Button ---- */
.csr-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.625rem;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all var(--transition);
}

.csr-copy-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
    background: rgba(99, 102, 241, 0.04);
}

[data-theme="dark"] .csr-copy-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #64748b;
}

[data-theme="dark"] .csr-copy-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}

/* ---- Toggle Button ---- */
.csr-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.625rem;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all var(--transition);
}

.csr-toggle-btn:hover {
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.04);
}

[data-theme="dark"] .csr-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #64748b;
}

[data-theme="dark"] .csr-toggle-btn:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

/* ---- Security Warning ---- */
.csr-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #d97706;
    margin-top: 1rem;
}

.csr-warning i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

[data-theme="dark"] .csr-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* ---- CSR Responsive ---- */
@media (max-width: 639px) {
    .csr-field-row {
        grid-template-columns: 1fr;
    }

    .csr-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .csr-key-actions {
        width: 100%;
    }

    .csr-copy-btn,
    .csr-toggle-btn {
        flex: 1;
        justify-content: center;
    }

    .csr-pem-output {
        font-size: 0.6875rem;
        padding: 0.75rem 1rem;
    }
}

/* ================================================
   DKIM Generator
   ================================================ */

/* ---- Form Fields ---- */
.dkim-field-group {
    margin-bottom: 1rem;
}

.dkim-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.375rem;
}

[data-theme="dark"] .dkim-label {
    color: #94a3b8;
}

.dkim-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: white;
    color: #1e293b;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.dkim-input:focus {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .dkim-input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .dkim-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.dkim-input::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .dkim-input::placeholder {
    color: #475569;
}

/* ---- Key Size Selector ---- */
.dkim-key-selector {
    display: flex;
    gap: 0.5rem;
}

.dkim-key-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all var(--transition);
}

.dkim-key-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

.dkim-key-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .dkim-key-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

[data-theme="dark"] .dkim-key-btn:hover {
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}

[data-theme="dark"] .dkim-key-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-color: transparent;
}

/* ---- Generate Button ---- */
.dkim-generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
}

.dkim-generate-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.dkim-generate-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ---- Result Header ---- */
.dkim-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dkim-key-actions {
    display: flex;
    gap: 0.5rem;
}

/* ---- DNS Record ---- */
.dkim-dns-row {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.dkim-dns-row:last-child {
    margin-bottom: 0;
}

.dkim-dns-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

[data-theme="dark"] .dkim-dns-label {
    color: #94a3b8;
}

.dkim-dns-value {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 0.5rem;
    color: #4f46e5;
    word-break: break-all;
}

[data-theme="dark"] .dkim-dns-value {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* ---- PEM Output ---- */
.dkim-pem-output {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: #1e293b;
    max-height: 300px;
    overflow-y: auto;
    user-select: all;
    cursor: text;
    margin: 0;
}

[data-theme="dark"] .dkim-pem-output {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.dkim-key-masked {
    color: #94a3b8;
    user-select: none;
    cursor: default;
}

[data-theme="dark"] .dkim-key-masked {
    color: #475569;
}

/* ---- Copy Button ---- */
.dkim-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.625rem;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all var(--transition);
}

.dkim-copy-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
    background: rgba(99, 102, 241, 0.04);
}

[data-theme="dark"] .dkim-copy-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #64748b;
}

[data-theme="dark"] .dkim-copy-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}

/* ---- Toggle Button ---- */
.dkim-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.625rem;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all var(--transition);
}

.dkim-toggle-btn:hover {
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.04);
}

[data-theme="dark"] .dkim-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #64748b;
}

[data-theme="dark"] .dkim-toggle-btn:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

/* ---- Security Warning ---- */
.dkim-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #d97706;
    margin-top: 1rem;
}

.dkim-warning i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

[data-theme="dark"] .dkim-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* ---- DKIM Responsive ---- */
@media (max-width: 639px) {
    .dkim-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .dkim-key-actions {
        width: 100%;
    }

    .dkim-copy-btn,
    .dkim-toggle-btn {
        flex: 1;
        justify-content: center;
    }

    .dkim-pem-output {
        font-size: 0.6875rem;
        padding: 0.75rem 1rem;
    }

    .dkim-dns-value {
        font-size: 0.75rem;
    }
}

/* ================================================
   DMARC Generator
   ================================================ */

/* ---- Form Fields ---- */
.dmarc-field-group {
    margin-bottom: 1rem;
}

.dmarc-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.375rem;
}

[data-theme="dark"] .dmarc-label {
    color: #94a3b8;
}

.dmarc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: white;
    color: #1e293b;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.dmarc-input:focus {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .dmarc-input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .dmarc-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.dmarc-input::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .dmarc-input::placeholder {
    color: #475569;
}

/* ---- Hint Text ---- */
.dmarc-hint {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

[data-theme="dark"] .dmarc-hint {
    color: #64748b;
}

/* ---- Policy Selector ---- */
.dmarc-policy-selector {
    display: flex;
    gap: 0.5rem;
}

.dmarc-policy-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all var(--transition);
}

.dmarc-policy-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

.dmarc-policy-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .dmarc-policy-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

[data-theme="dark"] .dmarc-policy-btn:hover {
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}

[data-theme="dark"] .dmarc-policy-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-color: transparent;
}

/* ---- Alignment Selector ---- */
.dmarc-align-selector {
    display: flex;
    gap: 0.5rem;
}

.dmarc-align-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all var(--transition);
}

.dmarc-align-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

.dmarc-align-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .dmarc-align-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

[data-theme="dark"] .dmarc-align-btn:hover {
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}

[data-theme="dark"] .dmarc-align-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-color: transparent;
}

/* ---- Generate Button ---- */
.dmarc-generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
}

.dmarc-generate-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.dmarc-generate-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ---- Result Header ---- */
.dmarc-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

/* ---- DNS Record ---- */
.dmarc-dns-row {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.dmarc-dns-row:last-child {
    margin-bottom: 0;
}

.dmarc-dns-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

[data-theme="dark"] .dmarc-dns-label {
    color: #94a3b8;
}

.dmarc-dns-value {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 0.5rem;
    color: #4f46e5;
    word-break: break-all;
}

[data-theme="dark"] .dmarc-dns-value {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* ---- Record Output ---- */
.dmarc-record-output {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: #1e293b;
    user-select: all;
    cursor: text;
    margin: 0;
}

[data-theme="dark"] .dmarc-record-output {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

/* ---- Copy Button ---- */
.dmarc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.625rem;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all var(--transition);
}

.dmarc-copy-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
    background: rgba(99, 102, 241, 0.04);
}

[data-theme="dark"] .dmarc-copy-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #64748b;
}

[data-theme="dark"] .dmarc-copy-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}

/* ---- Policy Badge ---- */
.dmarc-policy-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    color: white;
}

.dmarc-badge-none {
    background: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.dmarc-badge-quarantine {
    background: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.dmarc-badge-reject {
    background: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* ---- Info Note ---- */
.dmarc-info {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #2563eb;
    margin-top: 1rem;
}

.dmarc-info i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

[data-theme="dark"] .dmarc-info {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* ---- DMARC Responsive ---- */
@media (max-width: 639px) {
    .dmarc-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .dmarc-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .dmarc-record-output {
        font-size: 0.6875rem;
        padding: 0.75rem 1rem;
    }

    .dmarc-dns-value {
        font-size: 0.75rem;
    }

    .dmarc-policy-selector,
    .dmarc-align-selector {
        flex-wrap: wrap;
    }
}

/* =====================================================
   BLACKLIST MODULE
   ===================================================== */

/* Status Banner */
.bl-status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}

.bl-status-banner-clean {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .bl-status-banner-clean {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.15);
}

.bl-status-banner-blacklisted {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .bl-status-banner-blacklisted {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.15);
}

.bl-status-banner-whitelisted {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .bl-status-banner-whitelisted {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.15);
}

.bl-status-icon-wrap {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

.bl-status-banner-clean .bl-status-icon-wrap {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

[data-theme="dark"] .bl-status-banner-clean .bl-status-icon-wrap {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.bl-status-banner-blacklisted .bl-status-icon-wrap {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

[data-theme="dark"] .bl-status-banner-blacklisted .bl-status-icon-wrap {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.bl-status-banner-whitelisted .bl-status-icon-wrap {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

[data-theme="dark"] .bl-status-banner-whitelisted .bl-status-icon-wrap {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.bl-status-info {
    flex: 1;
    min-width: 0;
}

.bl-status-text {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}

.bl-status-banner-clean .bl-status-text { color: #059669; }
.bl-status-banner-blacklisted .bl-status-text { color: #dc2626; }
.bl-status-banner-whitelisted .bl-status-text { color: #059669; }

[data-theme="dark"] .bl-status-banner-clean .bl-status-text { color: #34d399; }
[data-theme="dark"] .bl-status-banner-blacklisted .bl-status-text { color: #f87171; }
[data-theme="dark"] .bl-status-banner-whitelisted .bl-status-text { color: #34d399; }

.bl-status-desc {
    font-size: 0.75rem;
    margin-top: 0.125rem;
    color: #6b7280;
}

[data-theme="dark"] .bl-status-desc {
    color: var(--color-muted);
}

/* Summary Grid (port module style) */
.bl-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.bl-summary-item {
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .bl-summary-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.bl-summary-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.375rem;
    color: #1e293b;
}

[data-theme="dark"] .bl-summary-number {
    color: #f1f5f9;
}

.bl-summary-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .bl-summary-label {
    color: #94a3b8;
}

.bl-summary-listed .bl-summary-number {
    color: #ef4444;
}

.bl-summary-clean .bl-summary-number {
    color: #10b981;
}

/* Progress Bar */
.bl-progress-wrap {
    margin-bottom: 1rem;
}

.bl-progress-bar {
    height: 0.375rem;
    border-radius: 1rem;
    background: #e5e7eb;
    overflow: hidden;
}

[data-theme="dark"] .bl-progress-bar {
    background: #374151;
}

.bl-progress-fill {
    height: 100%;
    border-radius: 1rem;
    transition: width 0.6s ease;
    background: #10b981;
}

.bl-progress-fill-danger {
    background: #ef4444;
}

.bl-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    color: #6b7280;
}

[data-theme="dark"] .bl-progress-labels {
    color: var(--color-muted);
}

/* Meta (checked at, whitelist match) */
.bl-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #6b7280;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

[data-theme="dark"] .bl-meta {
    color: var(--color-muted);
    border-top-color: #374151;
}

.bl-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.bl-meta-item i {
    font-size: 0.625rem;
    opacity: 0.5;
}

.bl-whitelist-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #ecfdf5;
    color: #059669;
    padding: 0.1875rem 0.625rem;
    border-radius: 1rem;
    font-size: 0.6875rem;
    font-weight: 500;
}

[data-theme="dark"] .bl-whitelist-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* Listed Sources */
.bl-list-item {
    border-left: 3px solid #ef4444;
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    background: #fef2f2;
    border-radius: 0 0.5rem 0.5rem 0;
}

[data-theme="dark"] .bl-list-item {
    background: rgba(239, 68, 68, 0.08);
}

.bl-list-item:last-child {
    margin-bottom: 0;
}

.bl-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bl-list-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1f2937;
}

[data-theme="dark"] .bl-list-name {
    color: #f3f4f6;
}

.bl-list-link {
    font-size: 0.6875rem;
    color: #3b82f6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(59, 130, 246, 0.08);
    transition: background 0.15s;
}

.bl-list-link:hover {
    background: rgba(59, 130, 246, 0.15);
    text-decoration: none;
}

[data-theme="dark"] .bl-list-link {
    background: rgba(59, 130, 246, 0.12);
}

.bl-list-matches {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.bl-match-value {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.6875rem;
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.25rem;
}

[data-theme="dark"] .bl-match-value {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Database Info Grid */
.bl-db-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.bl-db-item {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .bl-db-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.bl-db-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.25rem;
}

[data-theme="dark"] .bl-db-value {
    color: #f1f5f9;
}

.bl-db-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .bl-db-label {
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 640px) {
    .bl-status-banner {
        gap: 0.75rem;
        padding: 0.875rem 1rem;
    }

    .bl-status-icon-wrap {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .bl-summary-grid {
        gap: 0.5rem;
    }

    .bl-summary-number {
        font-size: 1.25rem;
    }

    .bl-summary-label {
        font-size: 0.625rem;
    }

    .bl-db-grid {
        grid-template-columns: 1fr;
    }

    .bl-list-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bl-modal {
        margin: 1rem;
    }
}

/* Whitelist Button */
.bl-btn-whitelist {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #d97706;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
}

.bl-btn-whitelist:hover {
    background: rgba(217, 119, 6, 0.15);
    border-color: rgba(217, 119, 6, 0.4);
}

[data-theme="dark"] .bl-btn-whitelist {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
}

[data-theme="dark"] .bl-btn-whitelist:hover {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.35);
}

/* Modal Overlay */
.bl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.bl-modal-overlay.hidden {
    display: none;
}

/* Modal */
.bl-modal {
    max-width: 28rem;
    width: 100%;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

[data-theme="dark"] .bl-modal {
    background: #1f2937;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.bl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .bl-modal-header {
    border-bottom-color: #374151;
}

.bl-modal-header h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

[data-theme="dark"] .bl-modal-header h3 {
    color: #f3f4f6;
}

.bl-modal-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-muted);
    background: none;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s;
}

.bl-modal-close:hover {
    color: #1f2937;
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .bl-modal-close:hover {
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.08);
}

.bl-modal-body {
    padding: 1.25rem;
}

.bl-modal-ip {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

[data-theme="dark"] .bl-modal-ip {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.bl-modal-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

[data-theme="dark"] .bl-modal-label {
    color: #d1d5db;
}

.bl-modal-textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    resize: vertical;
    min-height: 4rem;
    font-family: inherit;
    transition: border-color 0.15s;
}

.bl-modal-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .bl-modal-textarea {
    color: #f3f4f6;
    background: #111827;
    border-color: #4b5563;
}

[data-theme="dark"] .bl-modal-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.bl-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid #e5e7eb;
}

[data-theme="dark"] .bl-modal-footer {
    border-top-color: #374151;
}

.bl-modal-btn-cancel {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
}

.bl-modal-btn-cancel:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #374151;
}

[data-theme="dark"] .bl-modal-btn-cancel {
    color: var(--color-muted);
    border-color: #4b5563;
}

[data-theme="dark"] .bl-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
}

.bl-modal-btn-confirm {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    background: #10b981;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
}

.bl-modal-btn-confirm:hover {
    background: #059669;
}

.bl-modal-btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ================================================
   PFX Generator
   ================================================ */

.pfx-field-group {
    margin-bottom: 1rem;
}

.pfx-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.375rem;
}

[data-theme="dark"] .pfx-label {
    color: #94a3b8;
}

.pfx-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: white;
    color: #1e293b;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.pfx-input:focus {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .pfx-input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .pfx-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.pfx-input::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .pfx-input::placeholder {
    color: #475569;
}

/* ---- Help / Details Toggle ---- */
.pfx-help {
    margin-bottom: 0.5rem;
}

.pfx-help-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6366f1;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color var(--transition);
}

.pfx-help-toggle::-webkit-details-marker {
    display: none;
}

.pfx-help-toggle:hover {
    color: #4f46e5;
}

[data-theme="dark"] .pfx-help-toggle {
    color: #a5b4fc;
}

[data-theme="dark"] .pfx-help-toggle:hover {
    color: #c7d2fe;
}

.pfx-help-arrow {
    font-size: 0.5rem;
    transition: transform 0.2s ease;
}

.pfx-help[open] .pfx-help-arrow {
    transform: rotate(180deg);
}

.pfx-help-content {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #475569;
}

[data-theme="dark"] .pfx-help-content {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.15);
    color: #94a3b8;
}

.pfx-help-content p {
    margin: 0 0 0.5rem 0;
}

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

.pfx-help-files {
    font-weight: 600;
    margin-top: 0.5rem !important;
}

.pfx-help-format {
    font-weight: 600;
    margin-top: 0.5rem !important;
}

.pfx-help-list {
    margin: 0.25rem 0 0.5rem 1.25rem;
    padding: 0;
    list-style: disc;
}

.pfx-help-list li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #6366f1;
    padding: 0.125rem 0;
}

[data-theme="dark"] .pfx-help-list li {
    color: #a5b4fc;
}

.pfx-help-code {
    margin: 0.375rem 0 0 0;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    line-height: 1.5;
    color: #64748b;
    white-space: pre-wrap;
    word-break: break-all;
}

[data-theme="dark"] .pfx-help-code {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

/* ---- Textarea with File Button ---- */
.pfx-textarea-wrap {
    position: relative;
}

.pfx-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-bottom: 2.75rem;
    font-size: 0.8125rem;
    font-family: var(--font-mono);
    line-height: 1.5;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: white;
    color: #1e293b;
    outline: none;
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.pfx-textarea:focus {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .pfx-textarea {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .pfx-textarea:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.pfx-textarea::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] .pfx-textarea::placeholder {
    color: #475569;
}

.pfx-file-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all var(--transition);
}

.pfx-file-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
    background: rgba(99, 102, 241, 0.04);
}

[data-theme="dark"] .pfx-file-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #64748b;
}

[data-theme="dark"] .pfx-file-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}

/* ---- Generate Button ---- */
.pfx-generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
}

.pfx-generate-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.pfx-generate-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ---- Result ---- */
.pfx-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pfx-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
}

.pfx-download-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

/* ---- Info Box ---- */
.pfx-info {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6366f1;
    margin-top: 1rem;
}

.pfx-info i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

[data-theme="dark"] .pfx-info {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* ---- PFX Responsive ---- */
@media (max-width: 639px) {
    .pfx-textarea {
        font-size: 0.75rem;
    }
}

/* ================================================
   COLOR PICKER MODULE
   ================================================ */

/* ---- Preview Row ---- */
.clr-preview-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.clr-preview-swatch {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    background: #3b82f6;
    border: 2px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.clr-preview-swatch:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .clr-preview-swatch {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .clr-preview-swatch:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.clr-native-picker {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
}

.clr-hex-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    padding: 0 0.875rem;
    height: 3.5rem;
    flex: 1;
    min-width: 0;
    transition: border-color var(--transition), background var(--transition);
}

.clr-hex-input-wrap:focus-within {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.02);
}

[data-theme="dark"] .clr-hex-input-wrap {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .clr-hex-input-wrap:focus-within {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.06);
}

.clr-hex-hash {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: #94a3b8;
    margin-right: 0.25rem;
    user-select: none;
}

.clr-hex-field {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #1e293b;
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    text-transform: lowercase;
}

[data-theme="dark"] .clr-hex-field {
    color: #f1f5f9;
}

.clr-random-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    padding: 0 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.clr-random-btn:hover {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

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

/* ---- RGB Sliders ---- */
.clr-sliders {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.clr-slider-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.clr-slider-label {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 3.5rem;
    text-align: right;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.clr-label-r { color: #ef4444; }
.clr-label-g { color: #22c55e; }
.clr-label-b { color: #3b82f6; }

[data-theme="dark"] .clr-label-r { color: #f87171; }
[data-theme="dark"] .clr-label-g { color: #4ade80; }
[data-theme="dark"] .clr-label-b { color: #60a5fa; }

.clr-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
}

.clr-slider-red { background: linear-gradient(to right, #000, #ef4444); }
.clr-slider-green { background: linear-gradient(to right, #000, #22c55e); }
.clr-slider-blue { background: linear-gradient(to right, #000, #3b82f6); }

.clr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: white;
    border: 2px solid #94a3b8;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.clr-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.clr-slider::-moz-range-thumb {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: white;
    border: 2px solid #94a3b8;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.clr-slider-num {
    width: 3.5rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
    color: #1e293b;
    outline: none;
    -moz-appearance: textfield;
    flex-shrink: 0;
}

.clr-slider-num::-webkit-outer-spin-button,
.clr-slider-num::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.clr-slider-num:focus {
    border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .clr-slider-num {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

/* ---- Format Values ---- */
.clr-formats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.clr-format-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(0, 0, 0, 0.015);
    transition: background var(--transition);
}

.clr-format-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .clr-format-item {
    border-color: rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .clr-format-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.clr-format-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    width: 2.75rem;
    flex-shrink: 0;
}

.clr-format-value {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="dark"] .clr-format-value {
    color: #cbd5e1;
}

.clr-copy-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    font-size: 0.75rem;
}

.clr-copy-mini:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.clr-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.5rem;
}

/* ---- Palette Header & Controls ---- */
.clr-palette-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.clr-palette-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.clr-pill-group {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0.5rem;
    padding: 0.1875rem;
}

[data-theme="dark"] .clr-pill-group {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.clr-pill {
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.clr-pill:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #64748b;
}

[data-theme="dark"] .clr-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.clr-pill.active {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

[data-theme="dark"] .clr-pill.active {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

/* Stepper */
.clr-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0.5rem;
    overflow: hidden;
}

[data-theme="dark"] .clr-stepper {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.clr-stepper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 0.625rem;
    transition: all var(--transition);
}

.clr-stepper-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

[data-theme="dark"] .clr-stepper-btn {
    color: #94a3b8;
}

[data-theme="dark"] .clr-stepper-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.clr-stepper-value {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    min-width: 1.75rem;
    text-align: center;
    user-select: none;
    border-left: 1px solid rgba(0, 0, 0, 0.04);
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    height: 1.75rem;
    line-height: 1.75rem;
}

[data-theme="dark"] .clr-stepper-value {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.06);
}

/* ---- Control Groups (labeled stepper/pill) ---- */
.clr-control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.clr-control-label {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    line-height: 1;
}

/* ---- Algorithm Bar ---- */
.clr-algo-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0.625rem;
}

[data-theme="dark"] .clr-algo-bar {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.clr-algo-btn {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.4375rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.clr-algo-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #334155;
}

[data-theme="dark"] .clr-algo-btn {
    color: #94a3b8;
}

[data-theme="dark"] .clr-algo-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.clr-algo-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(59, 130, 246, 0.1));
    color: #4f46e5;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.12);
}

[data-theme="dark"] .clr-algo-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(59, 130, 246, 0.15));
    color: #a5b4fc;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.15);
}

/* Contrast shift value inside stepper */
.clr-cshift-value {
    cursor: pointer;
}

/* ---- Palette Grid ---- */
.clr-palette-grid {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 0;
    border-radius: 0.875rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .clr-palette-grid {
    border-color: rgba(255, 255, 255, 0.06);
}

.clr-palette-swatch {
    aspect-ratio: 1 / 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: transform 0.15s ease, z-index 0s;
    position: relative;
}

.clr-palette-swatch:hover {
    transform: scale(1.1);
    z-index: 10;
    border-radius: 0.375rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.clr-palette-shade-name {
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.clr-palette-shade-hex {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.7;
}

/* ---- Contrast Grid ---- */
.clr-contrast-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.clr-contrast-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .clr-contrast-box {
    border-color: rgba(255, 255, 255, 0.06);
}

.clr-contrast-white {
    background: #ffffff;
}

.clr-contrast-black {
    background: #000000;
}

.clr-contrast-sample {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.clr-contrast-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.clr-contrast-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clr-contrast-white .clr-contrast-label {
    color: #64748b;
}

.clr-contrast-black .clr-contrast-label {
    color: #94a3b8;
}

.clr-contrast-ratio {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
}

.clr-contrast-white .clr-contrast-ratio {
    color: #334155;
}

.clr-contrast-black .clr-contrast-ratio {
    color: #e2e8f0;
}

.clr-contrast-badges {
    display: flex;
    gap: 0.375rem;
}

.clr-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    letter-spacing: 0.03em;
}

.clr-badge-pass {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.clr-badge-fail {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

[data-theme="dark"] .clr-badge-pass {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

[data-theme="dark"] .clr-badge-fail {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* ---- Export ---- */
.clr-export-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 0.5rem;
}

[data-theme="dark"] .clr-export-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.clr-export-tab {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all var(--transition);
}

.clr-export-tab:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #334155;
}

[data-theme="dark"] .clr-export-tab {
    color: #94a3b8;
}

[data-theme="dark"] .clr-export-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.clr-export-tab.active {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

[data-theme="dark"] .clr-export-tab.active {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.clr-export-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.clr-export-fmts {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0.5rem;
    padding: 0.1875rem;
}

[data-theme="dark"] .clr-export-fmts {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.clr-export-fmt {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.clr-export-fmt:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #64748b;
}

[data-theme="dark"] .clr-export-fmt:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.clr-export-fmt.active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

[data-theme="dark"] .clr-export-fmt.active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.clr-export-code-wrap {
    position: relative;
}

.clr-export-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #334155;
    overflow-x: auto;
    white-space: pre;
    max-height: 20rem;
    margin: 0;
}

[data-theme="dark"] .clr-export-code {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.clr-copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all var(--transition);
}

.clr-copy-code-btn:hover {
    background: white;
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .clr-copy-code-btn {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

[data-theme="dark"] .clr-copy-code-btn:hover {
    background: rgba(30, 41, 59, 1);
    color: #a5b4fc;
}

/* ---- Color Responsive ---- */
@media (max-width: 639px) {
    .clr-formats {
        grid-template-columns: 1fr;
    }
    .clr-palette-shade-name,
    .clr-palette-shade-hex {
        display: none;
    }
    .clr-palette-swatch {
        aspect-ratio: 1;
    }
    .clr-palette-controls {
        width: 100%;
        justify-content: space-between;
    }
    .clr-contrast-grid {
        grid-template-columns: 1fr;
    }
    .clr-preview-row {
        flex-wrap: wrap;
    }
    .clr-random-btn {
        width: 100%;
    }
}

/* ============================================
   Sidebar Layout
   ============================================ */

/* Sidebar panel */
.sidebar-panel {
    width: 220px;
    flex-shrink: 0;
    background-color: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

[data-theme="dark"] .sidebar-panel {
    background-color: #111827;
    border-right-color: rgba(255, 255, 255, 0.06);
}

/* Sidebar bölüm başlığı */
.sidebar-section-title {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-muted);
    padding: 12px 12px 6px;
}

[data-theme="dark"] .sidebar-section-title {
    color: #6b7280;
}

/* Sidebar ayırıcı */
.sidebar-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    margin: 10px 8px;
}

[data-theme="dark"] .sidebar-divider {
    background-color: rgba(255, 255, 255, 0.06);
}

/* Sidebar link */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    transition: all 200ms ease;
    text-decoration: none;
}

[data-theme="dark"] .sidebar-link {
    color: #94a3b8;
}

.sidebar-link:hover {
    background-color: #f1f5f9;
    color: #334155;
}

[data-theme="dark"] .sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

/* Sidebar aktif link */
.sidebar-link-active {
    background-color: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}

[data-theme="dark"] .sidebar-link-active {
    background-color: rgba(79, 70, 229, 0.15);
    color: #818cf8;
}

.sidebar-link-active:hover {
    background-color: #e0e7ff;
    color: #4338ca;
}

[data-theme="dark"] .sidebar-link-active:hover {
    background-color: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
}

/* Sidebar ikon */
.sidebar-link-icon {
    width: 16px;
    text-align: center;
    font-size: 0.8125rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.sidebar-link-active .sidebar-link-icon {
    opacity: 1;
}

/* Mobil: sidebar overlay ve gizli sidebar */
@media (max-width: 1023px) {
    .sidebar-panel {
        position: fixed;
        top: 3.5rem; /* navbar yüksekliği */
        left: 0;
        bottom: 0;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 250ms ease;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .sidebar-panel.open {
        transform: translateX(0);
    }
}

/* ============================================
   DNS Filter Pill Butonları
   ============================================ */

.dns-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    transition: all 180ms ease;
    white-space: nowrap;
}

[data-theme="dark"] .dns-filter-pill {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
}

.dns-filter-pill:hover {
    border-color: #818cf8;
    color: #6366f1;
    background: #eef2ff;
}

[data-theme="dark"] .dns-filter-pill:hover {
    border-color: rgba(129, 140, 248, 0.4);
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
}

.dns-filter-pill.active {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .dns-filter-pill.active {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

/* ============================================
   WHOIS Kart Tabanlı Sonuçlar
   ============================================ */

.whois-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

[data-theme="dark"] .whois-card {
    background: #1a1f2e;
    border-color: rgba(255, 255, 255, 0.06);
}

.whois-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
}

[data-theme="dark"] .whois-card-header {
    color: #f3f4f6;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.whois-card-body {
    padding: 8px 20px;
}

/* Özet kartı */
.whois-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    gap: 16px;
    flex-wrap: wrap;
    flex-wrap: wrap;
}

.whois-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whois-summary-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    word-break: break-all;
    max-width: 100%;
    border-radius: 10px;
    min-width: 80px;
}

[data-theme="dark"] .whois-summary-box {
    border-color: rgba(255, 255, 255, 0.1);
}

.whois-summary-box-value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1f2937;
}

[data-theme="dark"] .whois-summary-box-value {
    color: #f3f4f6;
}

.whois-summary-box-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-muted);
}

.whois-summary-box-warn {
    border-color: #f59e0b;
    background: #fffbeb;
}

[data-theme="dark"] .whois-summary-box-warn {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.08);
}

.whois-summary-box-warn .whois-summary-box-value {
    color: #d97706;
}

[data-theme="dark"] .whois-summary-box-warn .whois-summary-box-value {
    color: #fbbf24;
}

/* Yeşil (OK) kutu */
.whois-summary-box-ok {
    border-color: #10b981;
    background: #ecfdf5;
}

[data-theme="dark"] .whois-summary-box-ok {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.whois-summary-box-ok .whois-summary-box-value {
    color: #059669;
}

[data-theme="dark"] .whois-summary-box-ok .whois-summary-box-value {
    color: #34d399;
}

/* Kırmızı (Danger) kutu */
.whois-summary-box-danger {
    border-color: #ef4444;
    background: #fef2f2;
}

[data-theme="dark"] .whois-summary-box-danger {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.whois-summary-box-danger .whois-summary-box-value {
    color: #dc2626;
}

[data-theme="dark"] .whois-summary-box-danger .whois-summary-box-value {
    color: #f87171;
}

/* Mavi (Info) kutu */
.whois-summary-box-info {
    border-color: #6366f1;
    background: #eef2ff;
}

[data-theme="dark"] .whois-summary-box-info {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
}

.whois-summary-box-info .whois-summary-box-value {
    color: #4f46e5;
}

[data-theme="dark"] .whois-summary-box-info .whois-summary-box-value {
    color: #a5b4fc;
}

/* Key-Value satır */
.whois-kv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.whois-kv-row:last-child {
    border-bottom: none;
}

[data-theme="dark"] .whois-kv-row {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.whois-kv-key {
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.whois-kv-val {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

[data-theme="dark"] .whois-kv-val {
    color: #e5e7eb;
}

/* Tarih satırları */
.whois-date-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.whois-date-row:last-child {
    border-bottom: none;
}

[data-theme="dark"] .whois-date-row {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.whois-date-indicator {
    width: 3px;
    height: 36px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Nameserver satırları */
.whois-ns-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    margin: 4px 12px;
    background: #f9fafb;
    border-radius: 8px;
}

[data-theme="dark"] .whois-ns-row {
    background: rgba(255, 255, 255, 0.03);
}

.whois-ns-row + .whois-ns-row {
    margin-top: 6px;
}

.whois-ns-copy {
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--color-muted);
    cursor: pointer;
    transition: all 150ms ease;
    border: none;
    background: none;
}

.whois-ns-copy:hover {
    background: #e5e7eb;
    color: #4b5563;
}

[data-theme="dark"] .whois-ns-copy:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
}

/* Status satırları */
.whois-status-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.whois-status-row:last-child {
    border-bottom: none;
}

[data-theme="dark"] .whois-status-row {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.whois-status-row i {
    margin-top: 3px;
}

/* Whois 4'lü stat kartları */
.whois-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 200ms ease;
}

[data-theme="dark"] .whois-stat-card {
    background: #1a1f2e;
    border-color: rgba(255, 255, 255, 0.06);
}

.whois-stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.whois-stat-card-body {
    flex: 1;
    min-width: 0;
}

.whois-stat-card-label {
    font-size: 0.6875rem;
    color: var(--color-muted);
    font-weight: 500;
}

.whois-stat-card-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1f2937;
    font-family: var(--font-mono);
    margin-top: 2px;
}

[data-theme="dark"] .whois-stat-card-value {
    color: #f3f4f6;
}

.whois-stat-card-sub {
    font-size: 0.625rem;
    font-weight: 600;
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: 9999px;
}

.whois-stat-card-sub-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

[data-theme="dark"] .whois-stat-card-sub-green {
    background: rgba(16, 185, 129, 0.15);
}

.whois-stat-card-sub-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

[data-theme="dark"] .whois-stat-card-sub-red {
    background: rgba(239, 68, 68, 0.15);
}

.whois-stat-card-sub-amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

[data-theme="dark"] .whois-stat-card-sub-amber {
    background: rgba(245, 158, 11, 0.15);
}

/* Whois kartları mobil responsive */
@media (max-width: 768px) {
    .whois-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .whois-summary-box {
        min-width: 0;
        padding: 8px 14px;
    }

    .whois-summary-box-value {
        font-size: 0.875rem !important;
    }
}

/* ============================================
   Sorgu Loading Overlay
   ============================================ */
.query-loading-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 56px 24px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(59, 130, 246, 0.03));
    margin-top: 1.5rem;
}

[data-theme="dark"] .query-loading-overlay {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(59, 130, 246, 0.04));
    border-color: rgba(99, 102, 241, 0.15);
}

.query-loading-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Çift halka animasyonu */
.query-loading-anim {
    position: relative;
    width: 56px;
    height: 56px;
}

.qla-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: #6366f1;
    border-right-color: #6366f1;
    border-radius: 50%;
    animation: qla-spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.qla-ring-2 {
    inset: 6px;
    border-top-color: #3b82f6;
    border-right-color: transparent;
    border-bottom-color: #3b82f6;
    border-left-color: transparent;
    animation: qla-spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
}

.qla-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #6366f1;
    animation: qla-pulse 1s ease-in-out infinite;
}

[data-theme="dark"] .qla-ring {
    border-top-color: #818cf8;
    border-right-color: #818cf8;
}

[data-theme="dark"] .qla-ring-2 {
    border-top-color: #60a5fa;
    border-bottom-color: #60a5fa;
}

[data-theme="dark"] .qla-dot {
    background: #818cf8;
}

@keyframes qla-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes qla-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.query-loading-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4f46e5;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .query-loading-text {
    color: #a5b4fc;
}

.query-loading-sub {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: -10px;
}

/* ============================================
   Subnet Özet Kartı
   ============================================ */
.subnet-summary-box {
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.015);
}

[data-theme="dark"] .subnet-summary-box {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.subnet-summary-box-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subnet-summary-box-value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1f2937;
    font-family: var(--font-mono);
    margin-top: 4px;
}

[data-theme="dark"] .subnet-summary-box-value {
    color: #f3f4f6;
}

/* IP Aralığı kutusu */
.subnet-range-box {
    margin-top: 12px;
    padding: 14px 18px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.04);
}

[data-theme="dark"] .subnet-range-box {
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.06);
}

.subnet-range-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6366f1;
}

[data-theme="dark"] .subnet-range-label {
    color: #a5b4fc;
}

.subnet-range-value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1f2937;
    font-family: var(--font-mono);
}

[data-theme="dark"] .subnet-range-value {
    color: #f3f4f6;
}

.subnet-range-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    border: none;
    cursor: pointer;
    transition: all 150ms ease;
}

.subnet-range-copy:hover {
    background: rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .subnet-range-copy {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
}

/* Mini stat kutucuklar */
.subnet-mini-stat {
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    text-align: center;
}

[data-theme="dark"] .subnet-mini-stat {
    border-color: rgba(255, 255, 255, 0.06);
}

.subnet-mini-stat-label {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subnet-mini-stat-value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1f2937;
    font-family: var(--font-mono);
    margin-top: 3px;
}

[data-theme="dark"] .subnet-mini-stat-value {
    color: #e5e7eb;
}

/* Subnet inline kopyala butonu */
.subnet-copy-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 150ms ease;
    vertical-align: middle;
    margin-left: 4px;
    font-size: 0.6875rem;
}

.subnet-copy-inline:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.subnet-copy-inline.copied {
    color: #10b981;
}

[data-theme="dark"] .subnet-copy-inline {
    color: #475569;
}

[data-theme="dark"] .subnet-copy-inline:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

[data-theme="dark"] .subnet-copy-inline.copied {
    color: #34d399;
}

/* IP listesi toggle butonu */
.subnet-ip-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    cursor: pointer;
    transition: all 150ms ease;
}

.subnet-ip-list-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .subnet-ip-list-btn {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

/* IP listesi grid */
.subnet-ip-list {
    margin-top: 10px;
}

.subnet-ip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 4px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.015);
}

[data-theme="dark"] .subnet-ip-grid {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.subnet-ip-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 5px;
    transition: background 100ms ease;
}

.subnet-ip-item:hover {
    background: rgba(99, 102, 241, 0.06);
}

[data-theme="dark"] .subnet-ip-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.subnet-ip-addr {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

[data-theme="dark"] .subnet-ip-addr {
    color: #d1d5db;
}

/* Geo pill badge */
.geo-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3125rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .geo-pill {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}
