/* ================================================
   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);
}

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

/* ---- 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;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748b;
    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 {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    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);
}

/* ---- 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.5rem;
}

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

.dns-analysis-group-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.625rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

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

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

.dns-test-item i {
    margin-top: 0.1875rem;
    flex-shrink: 0;
    font-size: 0.8125rem;
}

.dns-test-item strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
}

.dns-test-item p {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
    line-height: 1.4;
}

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

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

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

/* 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;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    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: #9ca3af;
}

.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: #9ca3af;
}

.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;
}

/* ================================================
   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: #9ca3af;
}

.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;
}

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

.subnet-bit-host {
    color: #94a3b8;
    font-weight: 400;
}

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

.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 {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    min-width: fit-content;
    padding: 0 0.5rem;
    white-space: nowrap;
}

.subnet-bit-bar-host {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    min-width: fit-content;
    padding: 0 0.5rem;
    white-space: nowrap;
}

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

/* 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;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.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;
    }
}
