/*****************************************************************
 * DNSai Advanced DNS Lookup  –  MASTER STYLESHEET
 * ---------------------------------------------------------------
 *  All original selectors kept intact
 *  Sections renumbered and re-titled for quicker navigation
 *****************************************************************/

/* ================================================================
 *  1.  GLOBAL RESET & SCROLLBARS
 * ================================================================ */
*{
  box-sizing:border-box;
  /* custom scrollbar (WebKit + Firefox) */
  scrollbar-width:thin;
  scrollbar-color:#555555 #333333;
}
::-webkit-scrollbar        { width:12px; }
::-webkit-scrollbar-track  { background:#333333; }
::-webkit-scrollbar-thumb  {
  background-color:#555555;
  border-radius:6px;
  border:3px solid #333333;
}
::-webkit-scrollbar-thumb:hover{ background-color:#777777; }


/* ================================================================
 *  1B.  CSS CUSTOM PROPERTIES (Color Palette)
 *  Based on DNSai Core Palette v2.0
 * ================================================================ */
:root {
  /* Brand Identity */
  --brand-cyan:              #26c4ff;
  --brand-blue:              #0054ff;
  --brand-gradient:          linear-gradient(90deg, #26c4ff 0%, #0054ff 100%);
  --brand-gradient-hover:    linear-gradient(90deg, #0048d4 0%, #007aff 100%);

  /* Status Colors */
  --color-success:           #00c853;
  --color-warning:           #ffab00;
  --color-error:             #ff1744;
  --color-info:              #40a8ff;

  /* Data Visualization */
  --data-pink:               #FC6FCF;
  --data-steel:              #97B8D5;
  --data-gold:               #D3D212;
  --data-header:             #40a8ff;

  /* ── Core DNS Record Types ── */
  --dns-a:                   #26c4ff;   /* A — IPv4 Address */
  --dns-aaaa:                #7c3aed;   /* AAAA — IPv6 Address */
  --dns-cname:               #06b6d4;   /* CNAME — Canonical Name */
  --dns-mx:                  #10b981;   /* MX — Mail Exchange */
  --dns-txt:                 #f59e0b;   /* TXT — Text */
  --dns-ns:                  #3b82f6;   /* NS — Name Server */
  --dns-soa:                 #6366f1;   /* SOA — Start of Authority */
  --dns-srv:                 #14b8a6;   /* SRV — Service Locator */
  --dns-ptr:                 #f97316;   /* PTR — Pointer / Reverse */
  --dns-caa:                 #ef4444;   /* CAA — Cert Authority Auth */

  /* ── Email / Authentication ── */
  --dns-spf:                 #f59e0b;   /* SPF */
  --dns-dmarc:               #ec4899;   /* DMARC */
  --dns-dkim:                #22c55e;   /* DKIM */
  --dns-bimi:                #8b5cf6;   /* BIMI */
  --dns-email-gw:            #10b981;   /* Email Gateway */

  /* ── Modern / Service ── */
  --dns-https:               #a855f7;   /* HTTPS */
  --dns-svcb:                #9333ea;   /* SVCB */
  --dns-uri:                 #06b6d4;   /* URI */
  --dns-naptr:               #0891b2;   /* NAPTR */
  --dns-dname:               #22d3ee;   /* DNAME */

  /* ── DNSSEC ── */
  --dns-dnskey:              #4f46e5;   /* DNSKEY */
  --dns-ds:                  #6366f1;   /* DS */
  --dns-rrsig:               #818cf8;   /* RRSIG */
  --dns-nsec:                #a5b4fc;   /* NSEC */
  --dns-nsec3:               #c7d2fe;   /* NSEC3 */

  /* ── Security / Key ── */
  --dns-tlsa:                #fb923c;   /* TLSA */
  --dns-sshfp:               #fdba74;   /* SSHFP */

  /* ── Geolocation Metadata ── */
  --dns-geo-country:         #0ea5e9;
  --dns-geo-city:            #38bdf8;
  --dns-geo-region:          #7dd3fc;
  --dns-geo-lat:             #06b6d4;
  --dns-geo-lon:             #22d3ee;

  /* ── MX/A Record Metadata ── */
  --dns-mx-host-ip:          #10b981;
  --dns-mx-host-asn:         #34d399;
  --dns-mx-host-loc:         #059669;
  --dns-a-asn:               #3b82f6;
  --dns-a-ip-loc:            #60a5fa;

  /* ── Technology & Meta ── */
  --dns-tech:                #6366f1;
  --dns-technology:          #6366f1;
  --dns-timestamp:           #6b7280;
  --dns-domain:              #ffffff;
  --dns-default:             #9ca3af;

  /* ── Dark Mode (default) ── */
  --bg-body:                 #000000;
  --bg-section:              #111111;
  --bg-surface:              #1a1a1a;
  --bg-card:                 #222222;
  --bg-input:                #1a1a1a;
  --bg-footer:               #191919;
  --bg-hover:                rgba(38, 196, 255, 0.08);
  --text-primary:            #ffffff;
  --text-secondary:          #cccccc;
  --text-muted:              #999999;
  --text-dimmed:             #888888;
  --border-default:          #333333;
  --border-emphasis:         #555555;
  --border-focus:            #26c4ff;
  --accent:                  var(--brand-cyan);
  --link:                    var(--brand-cyan);
  --focus-ring:              rgba(38, 196, 255, 0.3);
}

/* Light Mode Overrides */
body.light-mode {
  --bg-body:                 #ffffff;
  --bg-section:              #f1f1f1;
  --bg-surface:              #f9f9f9;
  --bg-card:                 #f9f9f9;
  --bg-input:                #ffffff;
  --bg-footer:               #E6E6E6;
  --bg-hover:                rgba(0, 84, 255, 0.08);
  --text-primary:            #000000;
  --text-secondary:          #333333;
  --text-muted:              #666666;
  --text-dimmed:             #555555;
  --border-default:          #cccccc;
  --border-emphasis:         #e5e5e5;
  --border-focus:            #0054ff;
  --accent:                  var(--brand-blue);
  --link:                    var(--brand-blue);
  --focus-ring:              rgba(0, 84, 255, 0.2);
}

/* ================================================================
 *  2.  BASE BODY & THEME MODES
 * ================================================================ */
body{
  font-family:Arial,sans-serif;
  font-size:16px;
  margin:0;
  padding:0;
  color:#fff;
  background:#000;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  overflow:auto;
  transition:background .3s,color .3s;
}
.dark-mode  { background:#000; color:#fff; }
.light-mode { background:#fff; color:#000; }


/* ================================================================
 *  3.  TYPOGRAPHY & INLINE UTILITIES
 * ================================================================ */
.centered{ text-align:center; margin:0; }
.bold    { font-weight:700; }
.thin    { font-weight:300; }
.small   { font-size:8px; text-align:left; padding-bottom:10px; }
.required-asterisk{ color:red; }

/* ================================================================
 *  4.  TITLES, HEADERS & CREATOR CREDIT
 * ================================================================ */
/* -- shared header helpers -- */
.title-section               { text-align:center; margin-bottom:30px; }
.title-section .logo         { max-width:80px; margin-bottom:10px; }

.title-section .main-title,
.title                       { font-size:1.75rem; margin:0; line-height:1; }
.header_title                { text-align:center; font-size:42px; padding:35px 0 15px; margin:5px; }

.title-section .main-title .bold,
.title .bold,
.header_title .bold          { font-weight:700; }
.title-section .main-title .thin,
.title .thin,
.header_title .thin          { font-weight:300; }

.title-section .sub-title,
.sub-title                   { text-align:center; font-size:1rem; font-weight:700; margin:8px 0 16px; color:#fff; }

.creator                         { text-align:center; font-size:8pt; padding-bottom:15px; }
.creator a.creator-link          { color:#fff; text-decoration:none; }
.creator a.creator-link:hover    { text-decoration:underline; }
.title-section .creator          { font-size:8pt; }
.title-section .creator a.creator-link,
.title-section .creator a.creator-link:hover{ color:#fff; text-decoration:none; }

.header_title img {
  vertical-align: middle;
  max-width: 60px;
  margin-right: 12px;
}

/* ================================================================
 *  5.  NAVIGATION MENU, MODE SWITCH & FLY-OUT
 * ================================================================ */

/* Navigation Bar */
.nav-menu {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 14px 20px;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
    z-index: 1300;
    line-height: 1;
}

body.light-mode .nav-menu {
    background-color: rgba(255, 255, 255, 1) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

body.dark-mode .nav-menu {
    background-color: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

.nav-menu .mode-switch {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    align-self: center;
}

.nav-menu .menu-icon {
    margin-left: auto;
    flex-shrink: 0;
}

.nav-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.nav-brand-link:hover {
    opacity: 0.85;
}

.nav-logo {
    max-width: 30px;
    height: auto;
    display: block;
    flex-shrink: 0;
    align-self: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

body.light-mode .nav-logo {
    filter: none;
}

body.dark-mode .nav-logo {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 24px;
    margin-right: 50px;
    flex-grow: 0;
    flex-shrink: 0;
}

.nav-menu .nav-links > a,
.menu-icon {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    transition: all 0.3s ease;
    padding: 8px 12px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-menu .nav-links > a:hover,
.menu-icon:hover {
    color: #26c4ff;
    transform: translateY(-1px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.light-mode .nav-menu .nav-links > a,
body.light-mode .menu-icon {
    color: #000 !important;
    text-shadow: none !important;
}

body.light-mode .nav-menu .nav-links > a:hover,
body.light-mode .menu-icon:hover {
    color: #0054ff !important;
    text-shadow: none !important;
}

body.light-mode .nav-menu .nav-links > a::after {
    background: #0054ff;
}

body.dark-mode .nav-menu .nav-links > a,
body.dark-mode .menu-icon {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .nav-menu .nav-links > a:hover,
body.dark-mode .menu-icon:hover {
    color: #26c4ff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .nav-menu .nav-links > a::after {
    background: #26c4ff;
}

.nav-menu .nav-links > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    width: 0;
    height: 2px;
    background: #26c4ff;
    transition: width 0.3s ease;
}

.nav-menu .nav-links > a:hover::after {
    width: calc(100% - 24px);
}

.menu-icon {
    cursor: pointer;
    font-size: 28px;
    color: #fff;
    padding: 4px 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    z-index: 1300;
    position: relative;
}

.menu-icon:hover {
    transform: scale(1.1);
}

/* Flyout Menu Backdrop */
.flyout-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    cursor: pointer;
}

.flyout-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Flyout Menu */
.flyout-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: #1a1a1a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.8);
    padding: 70px 24px 24px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flyout-menu.open {
    transform: translateX(0);
}

body.light-mode .flyout-menu {
    background: #ffffff !important;
    border-left: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15) !important;
}

body.dark-mode .flyout-menu {
    background: #1a1a1a !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.8) !important;
}

.flyout-menu a {
    display: block;
    color: #ffffff;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
}

.flyout-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #26c4ff;
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

.flyout-menu a:hover::before {
    transform: scaleY(1);
}

body.light-mode .flyout-menu a {
    color: #1a1a1a !important;
}

body.light-mode .flyout-menu a::before {
    background: #0054ff;
}

body.light-mode .flyout-menu a:hover {
    background: rgba(0, 84, 255, 0.08) !important;
    color: #0054ff !important;
    transform: translateX(4px);
}

body.dark-mode .flyout-menu a {
    color: #ffffff !important;
}

body.dark-mode .flyout-menu a:hover {
    background: rgba(38, 196, 255, 0.12) !important;
    color: #26c4ff !important;
    transform: translateX(4px);
}

.flyout-menu .flyout-close {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px !important;
    color: #999 !important;
    opacity: 0.8;
    text-align: center;
    font-weight: 600;
}

.flyout-menu .flyout-close::before {
    display: none;
}

body.light-mode .flyout-menu .flyout-close {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #666 !important;
}

body.light-mode .flyout-menu .flyout-close:hover {
    opacity: 1;
    color: #1a1a1a !important;
    background: rgba(0, 0, 0, 0.05) !important;
    transform: none;
}

body.dark-mode .flyout-menu .flyout-close:hover {
    opacity: 1;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    transform: none;
}

/* Flyout Menu Mobile Optimization */
@media (max-width: 480px) {
    .flyout-menu {
        width: 75vw;
        max-width: 280px;
        min-width: 240px;
        padding: 56px 12px 16px 12px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.6);
    }
}

/* Mode Switch */
.mode-switch {
  display: flex;
  align-items: center;
  margin: 0;
}

.mode-switch input {
  display: none;
}

.mode-switch label {
  width: 35px;
  height: 15px;
  background: #ccc;
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.3s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  display: block;
}

body.light-mode .mode-switch label {
  background: #999 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .mode-switch label {
  background: #666 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.mode-switch label::after {
  content: '';
  width: 11px;
  height: 11px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mode-switch input:checked + label::after {
  transform: translateX(20px);
}

.logo {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.95;
}

.logo:hover {
    transform: scale(1.03);
    opacity: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

body.light-mode .logo {
    filter: none;
}


/* ================================================================
 *  6.  HERO BANNER (Shared)
 * ================================================================ */
.header-hero{
  position:relative; width:100%; height:300px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:40px; font-weight:bold; text-align:center;
}
.header-hero video{
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:100%; height:100%; object-fit:cover; z-index:-1;
}
.header-hero iframe#hero-background{
  position:absolute; top:0; left:0;
  width:100%; height:100%; border:none; z-index:0;
}
.header_title{ display:flex; flex-direction:column; align-items:center; position:relative; z-index:2; }

.hero-main     { display:flex; align-items:center; gap:6px; }
.hero-subtitle { font-size:14px; margin:4px 0 0; }

/* -- hero mobile -- */
@media(max-width:768px){
  .header-hero{ height:200px; font-size:24px; }
  .header_title{ font-size:20px; }
  .content     { width:90%; }
}
.light-mode .header-hero{ color:#fff; }

.company-info-block {
  display: flex;
  align-items: center;
  margin-top: 15px;
}
.company-info-block img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

/* ================================================================
 *  7.  INPUT FORM LAYOUT (Default)
 * ================================================================ */
.container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode .container {
    background: transparent !important;
    color: #fff !important;
}

body.light-mode .container {
    background: transparent !important;
    color: #000 !important;
}

.content {
    margin-top: 80px;
    margin-bottom: 32px;
    width: 100%;
    transition: color 0.3s ease;
}

body.dark-mode .content {
    color: #fff !important;
}

body.light-mode .content {
    color: #000 !important;
}

/* Form Container */
.form-container {
    max-width: 540px;
    margin: 0 auto;
    padding: 40px 28px;
    border-radius: 24px;
    border: 1px solid transparent;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #26c4ff 0%, #0054ff 50%, #26c4ff 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

body.dark-mode .form-container {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.light-mode .form-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 250, 1) 100%) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

body.light-mode .form-container::before {
    background: linear-gradient(90deg, #0054ff 0%, #0040cc 50%, #0054ff 100%);
    background-size: 200% 100%;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin: 0 auto 48px auto;
    padding: 0 20px;
    max-width: 600px;
    width: 100%;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
    transition: color 0.3s ease;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
}

body.dark-mode .title {
    color: #fff !important;
}

body.light-mode .title {
    color: #000 !important;
}

.title .brand-dns,
.title .bold {
    font-weight: bold;
}
.title .brand-ai,
.title .thin {
    font-weight: 300;
}

/* Responsive title sizing for mobile */
@media (max-width: 768px) {
    .title {
        font-size: 1.5rem;
        white-space: normal;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.25rem;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.3;
    }
}

/* Creator, Muted & Consent Text */
.creator {
    font-size: 10pt;
    margin-bottom: 0;
    margin-top: 0.5rem;
    color: rgba(128, 128, 128, 0.8);
    transition: color 0.3s ease;
}

body.dark-mode .creator {
    color: rgba(128, 128, 128, 0.8) !important;
}

body.light-mode .creator {
    color: rgba(128, 128, 128, 0.7) !important;
}

.creator-link {
    color: rgba(128, 128, 128, 0.8) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.3s ease;
}

.creator-link:hover,
.creator-link:visited,
.creator-link:active {
    color: rgba(128, 128, 128, 0.8) !important;
    text-decoration: none !important;
}

body.dark-mode .creator-link,
body.dark-mode .creator-link:hover {
    color: rgba(128, 128, 128, 0.8) !important;
}

body.light-mode .creator-link,
body.light-mode .creator-link:hover {
    color: rgba(128, 128, 128, 0.7) !important;
}

.muted {
    color: #fff;
    font-size: 13px;
    transition: color 0.3s ease;
    line-height: 1.6;
}

body.dark-mode .muted {
    color: #fff !important;
}

body.light-mode .muted {
    color: #666 !important;
}

.consent-text {
    color: #fff;
    font-size: 10px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

body.dark-mode .consent-text {
    color: #fff !important;
}

body.light-mode .consent-text {
    color: #666 !important;
}

/* Input Wrapper */
.input-wrapper {
    margin-bottom: 28px;
}

.input-with-icon {
    position: relative;
}

/* ----------------------------------------------------------------
   FORM FIELDS
   ---------------------------------------------------------------- */
label {
    display: block;
    font-weight: 600;
    margin-bottom: 14px;
    color: #fff;
    font-size: 13px;
    transition: color 0.3s ease;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0.9;
}

body.dark-mode label {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.light-mode label {
    color: rgba(0, 0, 0, 0.8) !important;
}

.required-asterisk {
    color: #ff5555;
    font-weight: 700;
    margin-left: 2px;
}

body.light-mode .required-asterisk {
    color: #d62828 !important;
}

.form-input {
    font-size: 15px;
    width: 100%;
    max-width: 100%;
    padding: 18px 20px;
    margin: 0;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.form-input:focus {
    border-color: #26c4ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 4px rgba(38, 196, 255, 0.15),
        0 6px 24px rgba(38, 196, 255, 0.2),
        inset 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

body.dark-mode .form-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .form-input:focus {
    border-color: #26c4ff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .form-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .form-input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

body.light-mode .form-input {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #000 !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .form-input:focus {
    border-color: #0054ff !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow:
        0 0 0 4px rgba(0, 84, 255, 0.15),
        0 6px 24px rgba(0, 84, 255, 0.15),
        inset 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode .form-input:hover:not(:focus) {
    border-color: rgba(0, 0, 0, 0.22) !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .form-input::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
}

/* ----------------------------------------------------------------
   BASE BUTTON STYLE  –  shared by ALL buttons
   ---------------------------------------------------------------- */
button,
.submit-button {
    padding: 14px 26px;
    margin: 0;
    border-radius: 12px;
    border: none;
    box-sizing: border-box;
    background: linear-gradient(135deg, #26c4ff 0%, #0054ff 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(38, 196, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

button::before,
.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before,
.submit-button:hover::before {
    left: 100%;
}

button:disabled,
.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:hover:not(:disabled),
.submit-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #0054ff 0%, #0048d4 100%);
    box-shadow: 0 6px 20px rgba(38, 196, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

button:active:not(:disabled),
.submit-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(38, 196, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.light-mode button,
body.light-mode .submit-button {
    background: linear-gradient(90deg, #0054ff 0%, #0048d4 100%) !important;
    color: #fff !important;
}

body.light-mode button:hover:not(:disabled),
body.light-mode .submit-button:hover:not(:disabled) {
    background: linear-gradient(90deg, #0048d4 0%, #0033aa 100%) !important;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.submit-button.primary {
    flex: 1;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.submit-button:hover .button-icon {
    transform: scale(1.1);
}

/* Action Button - for results view action buttons */
.action-button {
    display: inline-block;
    width: auto;
    padding: 10px 14px;
    margin: 5px 5px 5px 0;
    border-radius: 5px;
    border: 1px solid #555;
    background: linear-gradient(to bottom, #0054FF, #0447D3);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 84, 255, 0.2);
}

.action-button:hover:not(:disabled) {
    background: linear-gradient(to bottom, #0447D3, #0054FF);
    box-shadow: 0 4px 12px rgba(0, 84, 255, 0.3);
    transform: translateY(-1px);
}

.action-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 84, 255, 0.25);
}

.action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

body.light-mode .action-button {
    background: linear-gradient(to bottom, #0054FF, #0447D3) !important;
    color: #fff !important;
}

body.light-mode .action-button:hover:not(:disabled) {
    background: linear-gradient(to bottom, #0447D3, #0033aa) !important;
}

body.dark-mode .action-button {
    background: linear-gradient(to bottom, #0054FF, #0447D3) !important;
    color: #fff !important;
}

body.dark-mode .action-button:hover:not(:disabled) {
    background: linear-gradient(to bottom, #0447D3, #0054FF) !important;
}

/* Plain Link - looks like normal text */
.plain-link {
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
}

.plain-link:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.plain-link:visited {
    color: inherit !important;
}

body.dark-mode .plain-link,
body.dark-mode .plain-link:hover,
body.dark-mode .plain-link:visited {
    color: #fff !important;
    text-decoration: none !important;
}

body.light-mode .plain-link,
body.light-mode .plain-link:hover,
body.light-mode .plain-link:visited {
    color: #000 !important;
    text-decoration: none !important;
}

/* Consent text links - same styling as plain-link */
.consent-text a {
    color: inherit !important;
    text-decoration: none !important;
}

.consent-text a:hover,
.consent-text a:visited {
    color: inherit !important;
    text-decoration: none !important;
}

body.dark-mode .consent-text a,
body.dark-mode .consent-text a:hover,
body.dark-mode .consent-text a:visited {
    color: #fff !important;
    text-decoration: none !important;
}

body.light-mode .consent-text a,
body.light-mode .consent-text a:hover,
body.light-mode .consent-text a:visited {
    color: #000 !important;
    text-decoration: none !important;
}

/* Bulk Button Container */
.bulk-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 25px 0 1rem 0;
    padding-top: 10px;
    height: auto;
}

.bulk-button {
    display: inline-block;
    margin: 0.5rem 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: var(--clr-text);
    border: 1px solid var(--clr-text);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bulk-button:hover {
    background: var(--clr-text);
    color: #000000;
    transform: scale(1.05);
}

body.light-mode .bulk-button {
    color: #000000;
    border-color: #000000;
}

body.light-mode .bulk-button:hover {
    background: #000000;
    color: #ffffff;
}

body.dark-mode .bulk-button {
    color: #ffffff;
    border-color: #ffffff;
}

body.dark-mode .bulk-button:hover {
    background: #ffffff;
    color: #000000;
}

.errorbox {
    background: #2a0f0f;
    border: 1px solid #602b2b;
    color: #ffd6d6;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
}

body.dark-mode .errorbox {
    background: #2a0f0f !important;
    border-color: #602b2b !important;
    color: #ffd6d6 !important;
}

body.light-mode .errorbox {
    background: #ffe6e6 !important;
    border-color: #ff9999 !important;
    color: #8b0000 !important;
}

/* ========================================================================
   FOOTER - COMPREHENSIVE SITE FOOTER
   ======================================================================== */
.site-footer {
    background-color: #000;
    color: #fff;
    border-top: 1px solid #191919;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 60px;
    width: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    box-sizing: border-box;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.footer-brand-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-brand-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.footer-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 0;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    color: #fff;
    transition: color 0.3s ease;
}

.title-section .logo-title .bold {
    font-weight: 700;
}

.title-section .logo-title .thin {
    font-weight: 300;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
}

.footer-column {
    flex: 1 1 140px;
    min-width: 120px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-column a:hover,
.footer-column a:focus {
    color: #26c4ff;
    text-decoration: underline;
    transform: translateX(2px);
    outline: none;
}

.footer-column a:focus-visible {
    outline: 2px solid #26c4ff;
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-address {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-address h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.footer-address p {
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.6;
}

.footer-address a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    display: inline-block;
}

.footer-address a:hover,
.footer-address a:focus {
    color: #26c4ff;
    text-decoration: underline;
    outline: none;
}

.footer-address a:focus-visible {
    outline: 2px solid #26c4ff;
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-address .social-icons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    align-items: center;
    justify-content: center;
}

.footer-address .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.3s ease;
    text-decoration: none;
    border-radius: 4px;
}

.footer-address .social-icons a:hover,
.footer-address .social-icons a:focus {
    transform: translateY(-2px);
    opacity: 0.8;
    outline: none;
}

.footer-address .social-icons a:focus-visible {
    outline: 2px solid #26c4ff;
    outline-offset: 3px;
}

.footer-address .social-icons img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.footer-address .social-icons img:hover {
    opacity: 0.75;
}

.footer-bottom {
    background-color: #191919;
    text-align: center;
    padding: 20px 10px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-bottom p {
    margin: 4px 0;
    line-height: 1.6;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    display: inline-block;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    color: #26c4ff;
    text-decoration: underline;
    outline: none;
}

.footer-bottom a:focus-visible {
    outline: 2px solid #26c4ff;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Light mode footer */
body.light-mode .site-footer {
    background-color: #fff !important;
    color: #000 !important;
    border-top: 1px solid #E6E6E6;
}

body.light-mode .footer-brand,
body.light-mode .footer-logo,
body.light-mode .title-section,
body.light-mode .logo-title,
body.light-mode .footer-column h4,
body.light-mode .footer-address h4,
body.light-mode .footer-column a,
body.light-mode .footer-address a,
body.light-mode .footer-address p,
body.light-mode .footer-bottom p,
body.light-mode .footer-bottom a {
    color: #000 !important;
}

body.light-mode .footer-column a:hover,
body.light-mode .footer-column a:focus,
body.light-mode .footer-address a:hover,
body.light-mode .footer-address a:focus,
body.light-mode .footer-bottom a:hover,
body.light-mode .footer-bottom a:focus {
    color: #0054ff !important;
}

body.light-mode .footer-column a:focus-visible,
body.light-mode .footer-address a:focus-visible,
body.light-mode .footer-address .social-icons a:focus-visible,
body.light-mode .footer-bottom a:focus-visible {
    outline-color: #0054ff !important;
}

body.light-mode .footer-bottom {
    background-color: #E6E6E6 !important;
    color: #000 !important;
    border-top: 1px solid #E6E6E6;
}

/* Dark mode footer */
body.dark-mode .site-footer {
    background-color: #000 !important;
    color: #fff !important;
    border-top: 1px solid #191919;
}

body.dark-mode .footer-column h4,
body.dark-mode .footer-address h4,
body.dark-mode .footer-column a,
body.dark-mode .footer-address a,
body.dark-mode .footer-address p,
body.dark-mode .footer-bottom p,
body.dark-mode .footer-bottom a,
body.dark-mode .logo-title {
    color: #fff !important;
}

body.dark-mode .footer-column a:hover,
body.dark-mode .footer-column a:focus,
body.dark-mode .footer-address a:hover,
body.dark-mode .footer-address a:focus,
body.dark-mode .footer-bottom a:hover,
body.dark-mode .footer-bottom a:focus {
    color: #26c4ff !important;
}

body.dark-mode .footer-column a:focus-visible,
body.dark-mode .footer-address a:focus-visible,
body.dark-mode .footer-address .social-icons a:focus-visible,
body.dark-mode .footer-bottom a:focus-visible {
    outline-color: #26c4ff !important;
}

body.dark-mode .footer-bottom {
    background-color: #191919 !important;
    border-top: 1px solid #333;
}

/* ----------------------------------------------------------------
   RESULTS-VIEW CTA BUTTONS  –  "Advanced DNSai Lookup", "Domain Profile"
   ---------------------------------------------------------------- */
.search-button{                       /* add alongside .submit-button */
  width:  auto;                       /* shrink-to-fit                */
  max-width: 250px;                   /* hard cap                     */
  padding: 10px 14px;                 /* symmetric horizontal padding */
}

/* ----------------------------------------------------------------
   NEW-SEARCH MINI BUTTON (post-results corner case)
   ---------------------------------------------------------------- */
.new-search-button,
.new-search-button2{ display: none; }  /* still hidden by default     */
.new-search-button2{
  width: 22%;
  padding: 4px;
  margin: 10px auto;
  background: transparent;
  border: none;
  text-align: center;
  transition: background-color .3s;
}
.new-search-button2:hover{
  background: #242424 !important;
  color: #fff;
}

/* ----------------------------------------------------------------
   COPY BUTTONS  (small, subtle)
   ---------------------------------------------------------------- */
.copy-button,
.copy-button2{
  width: 18%;
  float: right;
  font-size: 12px;
  color: #ccc;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  text-align: right;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
  transition: none !important;
}
.copy-button  { margin-top: 37px; width: 55px; }
.copy-button2 { margin-top: 7px; }
.copy-button:hover,
.copy-button2:hover{
  border: 1px solid #ccc;
  background: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

.light-mode .small a{ color: #000; text-decoration: none; }


/* ================================================================
 *  8.  COLLAPSIBLE DRAWERS
 * ================================================================ */
.drawer{
  overflow:hidden;
  max-height:0;
  transition:max-height .3s ease-out;
  padding: 0;
}
.drawer.open{
  max-height: 150px;
  padding: 12px 0;
}

.drawer-toggle{
  cursor:pointer;
  color:#666;
  margin-bottom:20px;
  font-size:12px;
  display:block;
  text-align:right;
}
.drawer-toggle:hover{ color:#ccc; }

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-wrapper label {
  font-size: 11px;
  margin: 0;
  cursor: pointer;
  color: var(--clr-text);
  line-height: 1.3;
}

.drawer-note {
  font-size: 10px;
  color: #666;
  margin: 8px 0 0 0;
  line-height: 1.4;
}

body.dark-mode .checkbox-wrapper label {
  color: #fff;
}

body.light-mode .checkbox-wrapper label {
  color: #000;
}

body.dark-mode .drawer-note {
  color: #999;
}

body.light-mode .drawer-note {
  color: #666;
}


/* ================================================================
 *  9.  PROCESSING MODAL & SPINNER
 * ================================================================ */
#processingModal{
  display:none; position:fixed; z-index:999999;
  left:0; top:0; width:100%; height:100%;
  overflow:auto; background-color:rgba(8,34,67,.5);
  justify-content:center; align-items:center;
}
#processingModalContent{
  background:linear-gradient(to bottom,#191919,#333333);
  padding:20px; border:1px solid #97B8D5; width:45%;
  max-width: 400px;
  min-width: 320px;
  text-align:center; border-radius:15px; color:white;
}
.dark-mode  #processingModalContent{ background-color:#333333; color:white; }
.light-mode #processingModalContent{ background-color:#474747; color:white; }

.spinner{ display:inline; font-size:1rem; white-space:nowrap; }
.dot{ display:inline-block; animation:spin 1.2s linear infinite; }
.dot:nth-child(1){ animation-delay:-.2s; }
.dot:nth-child(2){ animation-delay:-.1s; }
@keyframes spin{ 0%,80%,100%{ transform:scale(.5);} 40%{ transform:scale(1);} }

/* Responsive modal sizing for mobile */
@media (max-width: 768px) {
  #processingModalContent {
    width: 85%;
    max-width: 90%;
    min-width: 300px;
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  #processingModalContent {
    width: 90%;
    max-width: 95%;
    min-width: 280px;
    padding: 18px 12px;
  }
}

/* Error Modal */
#errorModal {
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 34, 67, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}
.error-modal-content {
  background: linear-gradient(135deg, #191919 0%, #333333 100%);
  padding: 24px 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 45%;
  max-width: 420px;
  min-width: 320px;
  text-align: center;
  border-radius: 15px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.error-modal-content h3 {
  color: #ffffff;
  margin: 0 0 12px 0;
  font-size: 1.3rem;
}
.error-modal-content p {
  margin: 8px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #cccccc;
}
.error-modal-close {
  margin-top: 16px;
  padding: 10px 28px;
  background: linear-gradient(to bottom, #0054ff, #0447d3);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s;
}
.error-modal-close:hover {
  background: linear-gradient(to bottom, #0447d3, #0054ff);
}
@media (max-width: 768px) {
  .error-modal-content {
    width: 85%;
    max-width: 90%;
    min-width: 300px;
    padding: 20px 15px;
  }
}
@media (max-width: 480px) {
  .error-modal-content {
    width: 90%;
    max-width: 95%;
    min-width: 280px;
    padding: 18px 12px;
  }
}

/* ================================================================
 * 10.  RESULTS LAYOUT  (<body class="results-layout">)
 * ================================================================ */

/* ---------- outer container ---------- */
.results-layout .container{
  flex: 1 1 auto;
  width: auto;
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* ---------- hero banner ---------- */
.results-layout .header-hero   { margin-bottom: 0; }
.results-layout .header_title{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  padding: 35px 0 15px;
  margin: 5px;
  font-weight: 400;   /* normal weight (not bold) */
}

.results-layout .header_title img{
  vertical-align: middle;
  max-width: 60px;
  margin-right: 12px;
}

/* ---------- quadrant grid ---------- */
.results-layout .top-row,
.results-layout .bottom-row{
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.results-layout .left-column,
.results-layout .right-column{ width: 100%; }
.results-layout .right-column .quadrant2{ margin-bottom: 20px; }
.results-layout .ad1,
.results-layout .ad2{
  display: block;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  margin-top: 15px;
  transition: height 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
}

/* Ad iframe styling */
.results-layout .ad1 .ad-iframe,
.results-layout .ad2 .ad-iframe {
  width: 100%;
  max-width: 350px;
  height: 145px;
  border: none;
  display: block;
  margin: 0 auto;
  transition: height 0.3s ease, opacity 0.3s ease;
}

/* Collapsed state when ads are disabled */
.results-layout .ad1.ad-hidden,
.results-layout .ad2.ad-hidden {
  height: 0 !important;
  margin: 0 !important;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.results-layout .ad1.ad-hidden .ad-iframe,
.results-layout .ad2.ad-hidden .ad-iframe {
  height: 0 !important;
  opacity: 0;
}
.results-layout .quadrant3{ margin-top: 20px; }

@media (min-width: 768px){
  .results-layout .top-row      { flex-direction: row;  align-items: flex-start; }
  .results-layout .left-column  { width: calc(80% - 200px); }
  .results-layout .right-column { width: calc(20% + 200px); display: flex; flex-direction: column; }
  .results-layout .bottom-row   { flex-direction: row; }
  .results-layout .ad2          { width: 20%; }
  .results-layout .quadrant4    { width: 80%; }
}

/* ---------- summary box ---------- */
.dns-records-title,
.summary-title {
  font-size: 24px;
  margin-top: 22px;
  padding-top: 20px;
  display: none;
}

.summary-box span {
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  white-space: normal;
}

.results-layout .summary-box{
  border: 1px solid #555;
  border-radius: 8px;
  padding: 20px;
  background: #111;
  margin-bottom: 20px;
  white-space: normal;
  overflow-x: visible;
  max-width: 100%;
}

/* light-mode summary overrides */
.light-mode .summary-box{
  background: #f1f1f1 !important;
  border: 1px solid #ccc !important;
  color: #000 !important;
}
.light-mode .summary-box span[style*="font-weight:bold; font-size:16px; color:#fff;"]{ color: #000 !important; }
.light-mode .summary-box span[style*="font-size:18px; color:#FC6FCF;"]            { color: #a9005f !important; }
.light-mode .summary-box span[style*="color:#97B8D5;"]                            { color: #000080 !important; }
.light-mode .summary-box span[style*="color:#D3D212;"]                            { color: #cc5500 !important; }

/* ---------- DNS-Records Section (exact Step-1 match) ---------- */
.results-layout .dns-records-section{
  margin-top: 20px;
  padding: 20px;
  background-color: #111;
  border-radius: 8px;
}
.light-mode .dns-records-section{ background-color: #f1f1f1; }

/* header row */
.results-layout .dns-records-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.results-layout .dns-records-header h2{
  margin: 0;
  font-size: 24px;
}

/* grid that holds the record boxes */
.results-layout .records-grid{
  display: grid;
  grid-template-columns: 1fr;   /* For narrower screens */
  grid-gap: 15px;
  margin-top: 20px;
}

/* record box */
.results-layout .record-box{
  background-color: #222;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #333;
  max-width: 1030px;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.results-layout .record-box h3{
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 16px;
  color: #40a8ff;
}
.results-layout .record-box p{
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.4em;
}

/* light-mode record overrides */
.light-mode .record-box{
  background-color: #fff;
  border: 1px solid #ccc;
}


/* ================================================================
 * LIGHT-MODE TEXT FIXES  –  normal text, records, footer
 * (append to the end of advanced-dnsai.css)
 * ================================================================ */

/* master text colour for light mode */
.light-mode,
.light-mode .record-box,
.light-mode .record-box p,
.light-mode .summary-box,
/*.light-mode .creator,*/
.light-mode .footer {
  color: #000 !important;
}

/* keep links readable in light mode */
.light-mode .content a,
.light-mode .creator-link,
.light-mode .footer-link {
  color: #0054FF;
}
.light-mode .content a:hover,
.light-mode .creator-link:hover,
.light-mode .footer-link:hover {
  color: #005FFF;
}

/* ================================================================
 * 20.  LIGHT-MODE EXTRAS  –  nav, fly-out, marketing copy, footer
 *      (append this block after all existing rules)
 * ================================================================ */

/* ================================================================
 * 20.  LIGHT-MODE EXTRAS  –  nav, fly-out, records header, marketing,
 *      footer, misc dynamic text
 *      (append after all existing rules)
 * ================================================================ */

/* ----------------------------------------------------------------
   1)  Global “plain-text” colour in light mode
   ---------------------------------------------------------------- */
.light-mode,
.light-mode .results-layout,
.light-mode .results-layout .container,
.light-mode .quadrant4,
.light-mode .quadrant4 p,
.light-mode .quadrant4 h3,
.light-mode .summary-title,
.light-mode .dns-records-title,
.light-mode #domainProfileTitle,
.light-mode #domainProfileDesc,
/*.light-mode .creator,*/
.light-mode .small,
.light-mode .bulk-button-container,
/*.light-mode .menu-close {
  color: #000 !important;
}*/

/* ----------------------------------------------------------------
   2)  DNS-Records header block (h2, <p>, dynamic spans)
   ---------------------------------------------------------------- */
.light-mode .dns-records-header,
.light-mode .dns-records-header h2,
.light-mode .dns-records-header p,
.light-mode .dns-records-header span {
  color: #000 !important;
}

/* ----------------------------------------------------------------
   3)  Nav-bar links, icons, hover
   ---------------------------------------------------------------- */
.light-mode .nav-menu a,
.light-mode .menu-icon,
/*.light-mode .menu-close { color: #000; }*/
.light-mode .nav-menu a:hover,
.light-mode .menu-icon:hover,
.light-mode .menu-close:hover { color: #333; }

/* ----------------------------------------------------------------
   4)  Fly-out menu background + links
   ---------------------------------------------------------------- */
/*.light-mode .flyout-menu        { background: #f9f9f9; }
.light-mode .flyout-menu a      { color: #000; }
.light-mode .flyout-menu a:hover{ color: #333; }*/

/* ----------------------------------------------------------------
   5)  Footer colours
   ---------------------------------------------------------------- */
.light-mode .footer,
.light-mode .footer-link { color: #000 !important; }
.light-mode .footer-link:hover { color: #333 !important; }

/* ----------------------------------------------------------------
   6)  Bottom-row marketing block (quadrant4)
   ---------------------------------------------------------------- */
.light-mode .bottom-row,
.light-mode .quadrant4 { background: transparent; color: #000; }

/* ----------------------------------------------------------------
   7)  Links inside MAIN CONTENT keep blue scheme
   ---------------------------------------------------------------- */
.light-mode .content   a,
.light-mode .creator-link,
.light-mode .bulk-button,
.light-mode .link2        { color: #0054FF; }
.light-mode .content   a:hover,
.light-mode .creator-link:hover,
.light-mode .bulk-button:hover,
.light-mode .link2:hover  { color: #005FFF; }
.light-mode .dns-records-section p { color: #000 !important; }

/* ----------------------------------------------------------------
   8)  Copy / Share buttons text colour in light mode
   ---------------------------------------------------------------- */
.light-mode .copy-button,
.light-mode .copy-button2 { color: #666; }

/* ----------------------------------------------------------------
   9)  Buttons already use gradients that contrast well in both modes
   ---------------------------------------------------------------- */


/* ---------- tablet / midsize tweaks ---------- */
@media (min-width: 769px) and (max-width: 1024px){
  /* slightly wider main container, a bit more breathing room */
  .results-layout .container           { max-width: 1050px; padding: 20px; }

  /* bump text size in the records panel */
  .results-layout .dns-records-section { font-size: 10pt; }

  /* record boxes: larger text + wider cap */
  .results-layout .record-box{
    font-size: 11px;
    max-width: 800px;         /* was 1050 on desktop, 400 on mobile */
    padding-right: 10px;
  }
}

/* ---------- mobile tweaks ---------- */
@media (max-width: 768px){
  .results-layout .container           { max-width: 768px; padding: 15px; }
  .results-layout .dns-records-section { font-size: 9pt; }
  .results-layout .record-box{
    font-size: 9px;
    max-width: 400px;
    min-width: 350px;
    padding-right: 5px;
  }
}

/* ================================================================
 * 11.  NAV-BAR SEARCH (Results View) – FIXED FOR TRUE CENTRE
 * ================================================================ */

/* give the bar a positioning context in results view */

/* layout positioning */
.results-layout .nav-search{
  order: 2;                              /* appear between mode-switch and menu-icon */
  position: relative;                    /* stay in flex flow */
  flex: 1 1 auto;                        /* take available space */
  width: auto;
  max-width: 400px;                      /* limit max width */
  margin: 0 auto;                        /* center within available space */
  display: flex!important;
  justify-content: center;
  justify-content: center;
  align-items: center;
}

.results-layout .nav-links{
  display: none !important;  /* hide nav-links in results view */
}

.results-layout .menu-icon{
  margin-left: auto !important;  /* keep menu icon on far right */
  order: 10;                     /* ensure it's last in flex order */
  flex-shrink: 0;                /* prevent shrinking */
}

/* form sizing */
.results-layout .nav-search form{
  width: auto;            /* let contents dictate width */
  max-width: none;        /* remove 320 px cap */
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}
.results-layout .nav-search form input{
  width: 100%;
  max-width: 135px;
  font-size: 12px;
  margin-right: 2px;
}
.results-layout .nav-search form button{
  flex: 0 0 auto;
  font-size: 11px;
  padding: 4px 6px;
  margin-left: 2px;
}

/* dedicated input + button styles */
.nav-search-input{
  font-size: 12px;
  width: 100%;
  max-width: 135px;
  padding: 2px 6px;
  margin: 0;
  border-radius: 5px;
  border: 1px solid #555;
  background: #444;
  color: #fff;
  box-sizing: border-box;
}
.nav-search-input::placeholder{ color: #bbb; }

.nav-submit-button{
  background: linear-gradient(to bottom, #0054FF, #0447D3);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background .3s;
  font-size: 11px;
  padding: 4px 10px;
  width: auto;
  margin-left: 2px;
}
.nav-submit-button:disabled{ opacity: .5; cursor: not-allowed; }
.nav-submit-button:hover:not(:disabled){
  background: linear-gradient(to bottom, #0447D3, #0054FF);
}

/* mobile fallback */
@media (max-width: 768px){
  .results-layout .nav-search{
    position: relative;
    flex: 1 1 auto;
    margin: 0 12px;
    max-width: none;
  }
  .results-layout .nav-search form{
    max-width: 250px;
  }
  .results-layout .menu-icon{
    margin-left: 0;  /* on mobile, just follow natural flow */
    padding-left: 8px;
  }
}

/* misc copy-button override */
.results-layout .copy-button{
  width: 55px;
  margin-top: 5px;
  float: right;
  font-size: 12px;
  color: #ccc;
  background: transparent;
  border: none;
  cursor: pointer;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
  transition: none !important;
}
.results-layout .copy-button:hover{
  border: 1px solid #ccc;
  width: 55px;
  background: #000!important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

/* anchor colours inside results .content */
.content a{ color: #0054FF; text-decoration: none; }
.content a:hover{ color: #005FFF; }

/* ================================================================
 * 12.  BULK-LOOKUP CTA & MISC LINKS
 * ================================================================ */
.bulk-button{
  display:inline-block; font-size:9pt; color:#fff;
  border:1px solid #fff; border-radius:50px;
  padding:4px 10px; margin-top:5px; text-align:center;
  text-decoration:none; transition:all .3s ease;
}
.bulk-button:hover{ background:#fff; color:#000; }

.light-mode .bulk-button{
  color: #000;             /* black text       */
  border: 1px solid #000;  /* black outline    */
  background: transparent; /* keep background clear */
}


.light-mode .bulk-button:hover{ background:#000; color:#fff; }

.bulk-button-container{ display:flex; justify-content:center; align-items:center; height:100px; }

.link2            { color:#fff; text-decoration:none; }
.light-mode .link2{ color:#000; text-decoration:none; }


/* ================================================================
 * 13.  FOOTER
 * ================================================================ */
.footer{
  position:relative; bottom:10px; width:100%;
  text-align:center; font-size:6pt; padding-bottom:15px;
  transition:background .3s,color .3s;
}
.footer-link{ color:#fff; text-decoration:none; transition:color .3s; }
.footer-link:hover{ text-decoration:none; color:#fff; }
.light-mode .footer-link{ color:#000; }


/* ================================================================
 * 14.  NOTIFICATION POP-UPS
 * ================================================================ */
#copyNotification,
#shareNotification{
  display:none; position:fixed; top:50%; left:50%;
  transform:translate(-50%,-50%);
  background:#0F1926; color:#fff;
  padding:12px; border:1px solid #97B8D5; border-radius:5px; z-index:1000;
}
#shareNotification{ z-index:1005; }


/* ================================================================
 * 15.  HIDDEN / MISC HELPERS
 * ================================================================ */
.hidden-honeypot{ display:none; }
.grecaptcha-badge{ visibility:hidden; }

/* ================================================================
 * 16.  ADDITIONAL MOBILE MEDIA QUERIES  – FIXED
 * ================================================================ */
@media (max-width:768px){

  /* container + record sizing */
  .container           { max-width:768px; margin:0 auto; margin-top:50px; padding:15px; }
  .dns-records-section { font-size:9pt;   max-width:100%; }
  .record-box          { font-size:9px;   max-width:400px; min-width:350px; padding-right:5px; padding-left:5px}

  /* nav-bar visibility tweaks */
  .nav-links{
    display:flex !important;            /* keep wrapper visible */
    align-items:center;
  }
  .nav-links > a{
    display:none !important;            /* hide text links */
  }
  .menu-icon{
    display:inline-block !important;    /* always show ☰ */
  }

  /* centred search bar */
  .nav-search           { display:block; width:200px; }
  .nav-search form input{ max-width:135px; }
  .results-layout .nav-search form{ max-width:250px; }
}


/* ================================================================
 * 17.  NAV-SEARCH FORM (Global)
 * ================================================================ */
.nav-search form{ display:flex; flex-wrap:nowrap; align-items:center; }
.nav-search form input{ margin-right:2px; }
.nav-search form button{ margin-left:2px; }

.nav-form-input{
  font-size:12px; width:100%; padding:2px; margin:10px 0;
  border-radius:5px; border:1px solid #555555;
  background-color:#444444; color:white; box-sizing:border-box;
}
.nav-form-input::placeholder{ color:#bbbbbb; }


/* ================================================================
 * 18.  COPY & SHARE BUTTONS (Inline)
 * ================================================================ */
.copy-button{
  margin-top:5px; width:55px; float:right; text-align:right; cursor:pointer;
  font-size:12px; color:#cccccc; border:none; padding:4px!important;
  background:transparent; outline:none;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
  transition: none !important;
}
.copy-button:hover{
  border:1px solid #cccccc; width:55px; background:#000000!important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}
.copy-button2{ /* retained duplicate styling for specific contexts */
  width:18%; float:right; font-size:12px; color:#ccc;
  background:transparent; border:none; cursor:pointer;
  padding:4px; display:none; text-align:right; margin-top:7px;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
  transition: none !important;
}
.copy-button2:hover{
  border:1px solid #ccc; background:#000!important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

/* Dark mode - copy/share buttons */
body.dark-mode .copy-button,
body.dark-mode .copy-button2 {
  color: #cccccc !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

body.dark-mode .copy-button:hover,
body.dark-mode .copy-button2:hover {
  color: #cccccc !important;
  background: #000000 !important;
  border: 1px solid #cccccc !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

/* Light mode - copy/share buttons */
body.light-mode .copy-button,
body.light-mode .copy-button2 {
  color: #000000 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

body.light-mode .copy-button:hover,
body.light-mode .copy-button2:hover {
  color: #000000 !important;
  background: #B3B3B3 !important;
  border: 1px solid #000000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}


/* ================================================================
 * 19.  DISCLAIMER SECTION (always visible)
 * ================================================================ */
.disclaimer-section{
  max-width:420px;
  margin:40px auto;
  line-height:1.4em;
}
.light-mode .disclaimer-section{ color:#000; }

/* ================================================================
 * RESPONSIVE STYLES - FOOTER
 * ================================================================ */

/* Tablet */
@media (max-width: 992px) {
  .footer-top {
    padding: 40px 20px 30px;
    gap: 24px;
  }

  .footer-column {
    flex: 1 1 120px;
  }

  .logo-title {
    font-size: 1.75rem;
  }
}

/* Mobile / Tablet Portrait */
@media (max-width: 768px) {
  .footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 10px 20px;
    max-width: 360px;
    margin: 0 auto;
  }

  .footer-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .footer-column {
    margin-bottom: 0;
    text-align: center;
  }

  .footer-column h4 {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .footer-column li {
    margin-bottom: 4px;
  }

  .footer-address {
    margin-top: 0;
  }

  .footer-address h4 {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .footer-address p {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .footer-address .social-icons {
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
  }

  .footer-address .social-icons img {
    width: 20px;
    height: 20px;
  }

  .footer-bottom {
    padding: 10px 8px;
    font-size: 12px;
  }

  .logo-title {
    font-size: 1.5rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .site-footer {
    margin-top: 40px;
  }

  .footer-top {
    padding: 20px 10px 15px;
    gap: 16px;
  }

  .footer-logo {
    max-width: 100px;
  }

  .logo-title {
    font-size: 1.25rem;
  }

  .footer-column h4 {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }

  .footer-column li {
    margin-bottom: 3px;
    font-size: 12px;
  }

  .footer-address h4 {
    font-size: 0.85rem;
  }

  .footer-address p {
    font-size: 12px;
  }

  .footer-address .social-icons {
    gap: 6px;
    margin-top: 6px;
  }

  .footer-address .social-icons img {
    width: 18px;
    height: 18px;
  }

  .footer-bottom {
    padding: 8px 6px;
    font-size: 11px;
  }

  .footer-bottom a {
    margin: 0 4px;
  }
}

/* ================================================================
 * 21.  RESULTS-VIEW NAV MENU UPDATE — Show nav links + search
 * ================================================================ */

/* Override: show nav-links in results view */
.results-layout .nav-links {
  display: flex !important;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  margin-left: 16px;
  margin-right: 16px;
  flex-shrink: 0;
}

.results-layout .nav-links > a {
  display: inline-block !important;
  font-size: 13px;
  padding: 6px 10px;
  white-space: nowrap;
}

/* Reposition nav-search in results view to fit with links */
.results-layout .nav-search {
  order: 3;
  flex: 0 1 auto;
  max-width: 280px;
  margin: 0 auto 0 0;
}

.results-layout .nav-menu {
  gap: 8px;
}

/* Hide nav links on smaller tablets, keep search + hamburger */
@media (max-width: 992px) {
  .results-layout .nav-links {
    display: none !important;
  }
  .results-layout .nav-search {
    flex: 1 1 auto;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ================================================================
 * 22.  DNS RECORD TYPE COLOR CODING (from core-palette)
 * ================================================================ */

/* DNS Record Box Base Styling */
.results-layout .record-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Gradient top border on hover */
.results-layout .record-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(38, 196, 255, 0.5) 0%, rgba(0, 84, 255, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.results-layout .record-box:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.results-layout .record-box:hover::before {
  opacity: 1;
}

.results-layout .record-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 2px solid currentColor;
}

.results-layout .record-box p {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
  font-family: 'Courier New', Courier, monospace;
  color: var(--text-secondary, #ccc);
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* --- DNS Type Badge (inline tag next to title) --- */
.dns-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  vertical-align: middle;
  background: rgba(156, 163, 175, 0.15);
  color: var(--dns-default, #9ca3af);
}

/* --- Core DNS Types --- */

/* A Record — IPv4 Address */
.record-box.dns-type-a { border-left-color: var(--dns-a, #26c4ff); }
.record-box.dns-type-a h3 { color: var(--dns-a, #26c4ff); }
.dns-badge-a { background: rgba(38, 196, 255, 0.15); color: var(--dns-a, #26c4ff); }

/* AAAA Record — IPv6 Address */
.record-box.dns-type-aaaa { border-left-color: var(--dns-aaaa, #7c3aed); }
.record-box.dns-type-aaaa h3 { color: var(--dns-aaaa, #7c3aed); }
.dns-badge-aaaa { background: rgba(124, 58, 237, 0.15); color: var(--dns-aaaa, #7c3aed); }

/* CNAME Record */
.record-box.dns-type-cname { border-left-color: var(--dns-cname, #06b6d4); }
.record-box.dns-type-cname h3 { color: var(--dns-cname, #06b6d4); }
.dns-badge-cname { background: rgba(6, 182, 212, 0.15); color: var(--dns-cname, #06b6d4); }

/* MX Record — Mail Exchange */
.record-box.dns-type-mx { border-left-color: var(--dns-mx, #10b981); }
.record-box.dns-type-mx h3 { color: var(--dns-mx, #10b981); }
.dns-badge-mx { background: rgba(16, 185, 129, 0.15); color: var(--dns-mx, #10b981); }

/* TXT Record */
.record-box.dns-type-txt { border-left-color: var(--dns-txt, #f59e0b); }
.record-box.dns-type-txt h3 { color: var(--dns-txt, #f59e0b); }
.dns-badge-txt { background: rgba(245, 158, 11, 0.15); color: var(--dns-txt, #f59e0b); }

/* NS Record — Name Server */
.record-box.dns-type-ns { border-left-color: var(--dns-ns, #3b82f6); }
.record-box.dns-type-ns h3 { color: var(--dns-ns, #3b82f6); }
.dns-badge-ns { background: rgba(59, 130, 246, 0.15); color: var(--dns-ns, #3b82f6); }

/* SOA Record — Start of Authority */
.record-box.dns-type-soa { border-left-color: var(--dns-soa, #6366f1); }
.record-box.dns-type-soa h3 { color: var(--dns-soa, #6366f1); }
.dns-badge-soa { background: rgba(99, 102, 241, 0.15); color: var(--dns-soa, #6366f1); }

/* SRV Record — Service Locator */
.record-box.dns-type-srv { border-left-color: var(--dns-srv, #14b8a6); }
.record-box.dns-type-srv h3 { color: var(--dns-srv, #14b8a6); }
.dns-badge-srv { background: rgba(20, 184, 166, 0.15); color: var(--dns-srv, #14b8a6); }

/* PTR Record — Reverse DNS */
.record-box.dns-type-ptr { border-left-color: var(--dns-ptr, #f97316); }
.record-box.dns-type-ptr h3 { color: var(--dns-ptr, #f97316); }
.dns-badge-ptr { background: rgba(249, 115, 22, 0.15); color: var(--dns-ptr, #f97316); }

/* CAA Record — Certificate Authority */
.record-box.dns-type-caa { border-left-color: var(--dns-caa, #ef4444); }
.record-box.dns-type-caa h3 { color: var(--dns-caa, #ef4444); }
.dns-badge-caa { background: rgba(239, 68, 68, 0.15); color: var(--dns-caa, #ef4444); }

/* --- Email / Authentication Types --- */

/* SPF Record */
.record-box.dns-type-spf { border-left-color: var(--dns-spf, #f59e0b); }
.record-box.dns-type-spf h3 { color: var(--dns-spf, #f59e0b); }
.dns-badge-spf { background: rgba(245, 158, 11, 0.15); color: var(--dns-spf, #f59e0b); }

/* SPF Sub-fields (all amber family) */
.record-box.dns-type-spf-main,
.record-box.dns-type-spf-nested,
.record-box.dns-type-spf-total,
.record-box.dns-type-spf-senders,
.record-box.dns-type-spf-limit { border-left-color: var(--dns-spf, #f59e0b); }
.record-box.dns-type-spf-main h3,
.record-box.dns-type-spf-nested h3,
.record-box.dns-type-spf-total h3,
.record-box.dns-type-spf-senders h3,
.record-box.dns-type-spf-limit h3 { color: var(--dns-spf, #f59e0b); }

/* DKIM Record */
.record-box.dns-type-dkim { border-left-color: var(--dns-dkim, #22c55e); }
.record-box.dns-type-dkim h3 { color: var(--dns-dkim, #22c55e); }
.dns-badge-dkim { background: rgba(34, 197, 94, 0.15); color: var(--dns-dkim, #22c55e); }

/* DKIM Sub-fields */
.record-box.dns-type-dkim-hosts,
.record-box.dns-type-dkim-selectors { border-left-color: var(--dns-dkim, #22c55e); }
.record-box.dns-type-dkim-hosts h3,
.record-box.dns-type-dkim-selectors h3 { color: var(--dns-dkim, #22c55e); }

/* DMARC Record */
.record-box.dns-type-dmarc { border-left-color: var(--dns-dmarc, #ec4899); }
.record-box.dns-type-dmarc h3 { color: var(--dns-dmarc, #ec4899); }
.dns-badge-dmarc { background: rgba(236, 72, 153, 0.15); color: var(--dns-dmarc, #ec4899); }

/* DMARC Sub-fields */
.record-box.dns-type-dmarc-policy,
.record-box.dns-type-dmarc-rua,
.record-box.dns-type-dmarc-ruf { border-left-color: var(--dns-dmarc, #ec4899); }
.record-box.dns-type-dmarc-policy h3,
.record-box.dns-type-dmarc-rua h3,
.record-box.dns-type-dmarc-ruf h3 { color: var(--dns-dmarc, #ec4899); }

/* BIMI Record */
.record-box.dns-type-bimi { border-left-color: var(--dns-bimi, #8b5cf6); }
.record-box.dns-type-bimi h3 { color: var(--dns-bimi, #8b5cf6); }
.dns-badge-bimi { background: rgba(139, 92, 246, 0.15); color: var(--dns-bimi, #8b5cf6); }

/* Email Gateway */
.record-box.dns-type-email-gateway { border-left-color: var(--dns-email-gw, #10b981); }
.record-box.dns-type-email-gateway h3 { color: var(--dns-email-gw, #10b981); }

/* --- Geolocation & Metadata Types --- */

/* Timestamp */
.record-box.dns-type-timestamp { border-left-color: var(--dns-timestamp, #6b7280); }
.record-box.dns-type-timestamp h3 { color: var(--dns-timestamp, #6b7280); }

/* Domain */
.record-box.dns-type-domain { border-left-color: var(--brand-cyan, #26c4ff); }
.record-box.dns-type-domain h3 { color: var(--brand-cyan, #26c4ff); }

/* MX Server Host IP — Green family */
.record-box.dns-type-mx-host-ip { border-left-color: var(--dns-mx-host-ip, #10b981); }
.record-box.dns-type-mx-host-ip h3 { color: var(--dns-mx-host-ip, #10b981); }

/* MX Server Host ASN */
.record-box.dns-type-mx-host-asn { border-left-color: var(--dns-mx-host-asn, #34d399); }
.record-box.dns-type-mx-host-asn h3 { color: var(--dns-mx-host-asn, #34d399); }

/* MX Server Host Location */
.record-box.dns-type-mx-host-loc { border-left-color: var(--dns-mx-host-loc, #059669); }
.record-box.dns-type-mx-host-loc h3 { color: var(--dns-mx-host-loc, #059669); }

/* A Record ASN */
.record-box.dns-type-a-asn { border-left-color: var(--dns-a-asn, #3b82f6); }
.record-box.dns-type-a-asn h3 { color: var(--dns-a-asn, #3b82f6); }

/* A Record IP Location — Blue family */
.record-box.dns-type-a-ip-loc { border-left-color: var(--dns-a-ip-loc, #60a5fa); }
.record-box.dns-type-a-ip-loc h3 { color: var(--dns-a-ip-loc, #60a5fa); }

/* Geolocation specific colors */
.record-box.dns-type-geo-country { border-left-color: var(--dns-geo-country, #0ea5e9); }
.record-box.dns-type-geo-country h3 { color: var(--dns-geo-country, #0ea5e9); }

.record-box.dns-type-geo-city { border-left-color: var(--dns-geo-city, #38bdf8); }
.record-box.dns-type-geo-city h3 { color: var(--dns-geo-city, #38bdf8); }

.record-box.dns-type-geo-region { border-left-color: var(--dns-geo-region, #7dd3fc); }
.record-box.dns-type-geo-region h3 { color: var(--dns-geo-region, #7dd3fc); }

/* Technology */
.record-box.dns-type-tech { border-left-color: var(--dns-tech, #6366f1); }
.record-box.dns-type-tech h3 { color: var(--dns-tech, #6366f1); }

/* Default / Unknown */
.record-box.dns-type-default { border-left-color: var(--dns-default, #9ca3af); }
.record-box.dns-type-default h3 { color: var(--dns-default, #9ca3af); }

/* Light mode adjustments for record boxes */
body.light-mode .record-box {
  background-color: var(--bg-card, #f9f9f9);
  border-color: var(--border-default, #ccc);
}

body.light-mode .record-box p {
  color: var(--text-secondary, #333);
}

/* ================================================================
 * 23.  DNS RECORDS SECTION HEADER ENHANCEMENT
 * ================================================================ */

.results-layout .dns-records-section {
  background-color: var(--bg-section, #111);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}

.results-layout .dns-records-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 4px 0;
}

.results-layout .records-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* Individual record item within a record box */
.record-item {
  background: var(--bg-surface, #1a1a1a);
  border: 1px solid var(--border-default, #333);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease;
}

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

.record-item:hover {
  border-color: var(--border-emphasis, #444);
}

.record-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.record-item-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted, #999);
}

.record-item-purpose {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.12);
  color: var(--dns-txt, #f59e0b);
}

.record-item-value {
  font-size: 13px;
  font-family: 'Courier New', Courier, monospace;
  color: var(--text-secondary, #ccc);
  line-height: 1.5;
  word-break: break-all;
  white-space: pre-wrap;
}

/* Light mode record items */
body.light-mode .record-item {
  background: var(--bg-surface, #f1f1f1);
}

body.light-mode .dns-records-section {
  background-color: var(--bg-section, #f1f1f1);
}

/* ================================================================
 * 24.  TXT RECORD LABEL SYSTEM
 * ================================================================ */

/* TXT Records Container - individual items */
/* Matches dns-records.min.js styling pattern */
.txt-records-container {
  display: flex;
  flex-direction: column;
  gap: 0; /* Gap handled by margin-bottom on items */
  width: 100%;
}

.txt-record-item {
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-left: 3px solid var(--dns-txt, #f59e0b);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 12px;
  transition: background-color 0.2s ease;
}

.txt-record-item:last-child {
  margin-bottom: 0;
}

.txt-record-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.txt-record-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

.txt-record-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dns-txt, #f59e0b);
  flex-shrink: 0;
  min-width: 80px;
}

.txt-record-purpose {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.15);
  color: var(--dns-txt, #f59e0b);
  white-space: nowrap;
  flex-shrink: 0;
}

.txt-record-value {
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
  color: var(--text-secondary, #ccc);
  line-height: 1.6;
  word-break: break-all;
  white-space: pre-wrap;
}

/* TXT record purpose label (inline tag showing service) */
.txt-purpose-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.12);
  color: var(--dns-txt, #f59e0b);
  margin-left: auto;
  white-space: nowrap;
}

/* TXT label color variants by service type */
.txt-label-verification { background: rgba(156, 163, 175, 0.12); color: #9ca3af; }
.txt-label-google { background: rgba(66, 133, 244, 0.12); color: #4285f4; }
.txt-label-microsoft { background: rgba(0, 120, 212, 0.12); color: #0078d4; }
.txt-label-apple { background: rgba(156, 163, 175, 0.12); color: #a3a3a3; }
.txt-label-facebook { background: rgba(24, 119, 242, 0.12); color: #1877f2; }
.txt-label-amazon { background: rgba(255, 153, 0, 0.12); color: #ff9900; }
.txt-label-salesforce { background: rgba(0, 161, 224, 0.12); color: #00a1e0; }
.txt-label-hubspot { background: rgba(255, 122, 89, 0.12); color: #ff7a59; }
.txt-label-atlassian { background: rgba(0, 82, 204, 0.12); color: #0052cc; }
.txt-label-adobe { background: rgba(255, 0, 0, 0.12); color: #ff0000; }
.txt-label-stripe { background: rgba(99, 91, 255, 0.12); color: #635bff; }
.txt-label-mailchimp { background: rgba(255, 225, 0, 0.12); color: #ffe100; }
.txt-label-sendgrid { background: rgba(0, 123, 255, 0.12); color: #007bff; }
.txt-label-spf { background: rgba(245, 158, 11, 0.12); color: var(--dns-spf, #f59e0b); }
.txt-label-dmarc { background: rgba(236, 72, 153, 0.12); color: var(--dns-dmarc, #ec4899); }
.txt-label-dkim { background: rgba(34, 197, 94, 0.12); color: var(--dns-dkim, #22c55e); }

/* ================================================================
 * 25.  GEOLOCATION CARD STYLING
 * ================================================================ */

.geo-card {
  background: var(--bg-card, #222);
  border: 1px solid var(--border-default, #333);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.geo-card-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--data-header, #40a8ff);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--data-header, #40a8ff);
}

/* Geo card type-specific accents */
.geo-card.geo-card--mx {
  border-left: 3px solid var(--dns-mx, #10b981);
}
.geo-card.geo-card--mx .geo-card-title {
  color: var(--dns-mx, #10b981);
  border-bottom-color: var(--dns-mx, #10b981);
}

.geo-card.geo-card--a {
  border-left: 3px solid var(--dns-a, #26c4ff);
}
.geo-card.geo-card--a .geo-card-title {
  color: var(--dns-a, #26c4ff);
  border-bottom-color: var(--dns-a, #26c4ff);
}

.geo-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.08);
}

.geo-row:last-child {
  border-bottom: none;
}

.geo-label {
  color: var(--text-muted, #999);
}

.geo-value {
  color: var(--text-primary, #fff);
  font-weight: 500;
  text-align: right;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
}

body.light-mode .geo-card {
  background-color: var(--bg-card, #f9f9f9);
}

/* ================================================================
 * 26.  TECHNOLOGY CATEGORY COLORS
 * ================================================================ */

/* Base tech category styling */
.tech-category {
  background: var(--bg-surface, #1a1a1a);
  border: 1px solid var(--border-default, #333);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.tech-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-default, #333);
}

.tech-category-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  flex: 1;
}

.tech-category-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #999);
  background: var(--bg-card, #222);
  border-radius: 10px;
  padding: 2px 8px;
  min-width: 20px;
  text-align: center;
}

.tech-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, #ccc);
  background: var(--bg-card, #222);
  border: 1px solid var(--border-default, #333);
  border-radius: 4px;
  white-space: nowrap;
  margin: 3px;
}

/* Category-specific colors */
.tech-cat-email-security { border-left: 3px solid #ef4444; }
.tech-cat-email-security .tech-category-name { color: #f87171; }
.tech-cat-email-security .tech-category-count { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.tech-cat-email-delivery { border-left: 3px solid #f59e0b; }
.tech-cat-email-delivery .tech-category-name { color: #fbbf24; }
.tech-cat-email-delivery .tech-category-count { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.tech-cat-email-hosting { border-left: 3px solid #3b82f6; }
.tech-cat-email-hosting .tech-category-name { color: #60a5fa; }
.tech-cat-email-hosting .tech-category-count { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.tech-cat-cloud-hosting { border-left: 3px solid #26c4ff; }
.tech-cat-cloud-hosting .tech-category-name { color: #26c4ff; }
.tech-cat-cloud-hosting .tech-category-count { background: rgba(38, 196, 255, 0.15); color: #26c4ff; }

.tech-cat-identity-access { border-left: 3px solid #8b5cf6; }
.tech-cat-identity-access .tech-category-name { color: #a78bfa; }
.tech-cat-identity-access .tech-category-count { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.tech-cat-crm-marketing { border-left: 3px solid #f472b6; }
.tech-cat-crm-marketing .tech-category-name { color: #f472b6; }
.tech-cat-crm-marketing .tech-category-count { background: rgba(244, 114, 182, 0.15); color: #f472b6; }

.tech-cat-security-compliance { border-left: 3px solid #ef4444; }
.tech-cat-security-compliance .tech-category-name { color: #f87171; }
.tech-cat-security-compliance .tech-category-count { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.tech-cat-dns-domain { border-left: 3px solid #14b8a6; }
.tech-cat-dns-domain .tech-category-name { color: #2dd4bf; }
.tech-cat-dns-domain .tech-category-count { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }

.tech-cat-microsoft { border-left: 3px solid #38bdf8; }
.tech-cat-microsoft .tech-category-name { color: #38bdf8; }
.tech-cat-microsoft .tech-category-count { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.tech-cat-ai-development { border-left: 3px solid #818cf8; }
.tech-cat-ai-development .tech-category-name { color: #818cf8; }
.tech-cat-ai-development .tech-category-count { background: rgba(99, 102, 241, 0.15); color: #818cf8; }

.tech-cat-finance-payments { border-left: 3px solid #34d399; }
.tech-cat-finance-payments .tech-category-name { color: #34d399; }
.tech-cat-finance-payments .tech-category-count { background: rgba(52, 211, 153, 0.15); color: #34d399; }

.tech-cat-other { border-left: 3px solid #6b7280; }
.tech-cat-other .tech-category-name { color: #9ca3af; }
.tech-cat-other .tech-category-count { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }

/* Light mode tech categories */
body.light-mode .tech-category {
  background-color: var(--bg-surface, #f9f9f9);
}

body.light-mode .tech-cat-email-security .tech-category-name { color: #dc2626; }
body.light-mode .tech-cat-email-delivery .tech-category-name { color: #d97706; }
body.light-mode .tech-cat-email-hosting .tech-category-name { color: #2563eb; }
body.light-mode .tech-cat-cloud-hosting .tech-category-name { color: #0891b2; }
body.light-mode .tech-cat-identity-access .tech-category-name { color: #7c3aed; }
body.light-mode .tech-cat-crm-marketing .tech-category-name { color: #db2777; }
body.light-mode .tech-cat-microsoft .tech-category-name { color: #0284c7; }
body.light-mode .tech-cat-other .tech-category-name { color: #6b7280; }

/* ================================================================
 * 27.  SPF STATUS INDICATORS
 * ================================================================ */

.spf-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.spf-status--ok {
  background: rgba(0, 200, 83, 0.12);
  color: var(--color-success, #00c853);
  border: 1px solid rgba(0, 200, 83, 0.3);
}

.spf-status--warning {
  background: rgba(255, 171, 0, 0.12);
  color: var(--color-warning, #ffab00);
  border: 1px solid rgba(255, 171, 0, 0.3);
}

.spf-status--error {
  background: rgba(255, 23, 68, 0.12);
  color: var(--color-error, #ff1744);
  border: 1px solid rgba(255, 23, 68, 0.3);
}

.spf-status--info {
  background: rgba(64, 168, 255, 0.12);
  color: var(--color-info, #40a8ff);
  border: 1px solid rgba(64, 168, 255, 0.3);
}

/* SPF limit counter styling */
.spf-limit-value {
  font-size: 20px;
  font-weight: 700;
}

.spf-limit-value.over-limit {
  color: var(--color-error, #ff1744);
}

.spf-limit-denominator {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted, #999);
}

/* ================================================================
 * 28.  DMARC TAG STYLING
 * ================================================================ */

.dmarc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.dmarc-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: var(--bg-surface, #1a1a1a);
  border: 1px solid var(--border-default, #333);
}

.dmarc-tag-key {
  font-weight: 600;
  color: var(--dns-dmarc, #ec4899);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dmarc-tag-value {
  color: var(--text-primary, #fff);
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
}

/* DMARC policy badges */
.dmarc-policy-none {
  background: rgba(234, 90, 0, 0.12);
  color: #EA5A00;
  border-color: rgba(234, 90, 0, 0.3);
}

.dmarc-policy-quarantine {
  background: rgba(255, 171, 0, 0.12);
  color: var(--color-warning, #ffab00);
  border-color: rgba(255, 171, 0, 0.3);
}

.dmarc-policy-reject {
  background: rgba(0, 200, 83, 0.12);
  color: var(--color-success, #00c853);
  border-color: rgba(0, 200, 83, 0.3);
}

/* ================================================================
 * 29.  DKIM STYLING
 * ================================================================ */

/* DKIM Records Container - individual items */
/* Matches dns-records.min.js styling pattern */
.dkim-records-container {
  display: flex;
  flex-direction: column;
  gap: 0; /* Gap handled by margin-bottom on items */
  width: 100%;
}

.dkim-record-item {
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-left: 3px solid var(--dns-dkim, #22c55e);
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 12px;
  transition: background-color 0.2s ease;
}

.dkim-record-item:last-child {
  margin-bottom: 0;
}

.dkim-record-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dkim-record-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

.dkim-record-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dns-dkim, #22c55e);
  flex-shrink: 0;
  min-width: 80px;
}

.dkim-record-selector {
  font-size: 12px;
  font-weight: 600;
  color: var(--dns-dkim, #22c55e);
  font-family: 'Courier New', Courier, monospace;
  background: rgba(34, 197, 94, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dkim-record-value {
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
  color: var(--text-secondary, #ccc);
  line-height: 1.6;
  word-break: break-all;
  white-space: pre-wrap;
}

.dkim-selector-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dns-dkim, #22c55e);
}

.dkim-service-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.12);
  color: var(--dns-dkim, #22c55e);
}

/* Light mode DKIM/TXT items */
body.light-mode .txt-record-item,
body.light-mode .dkim-record-item {
  background: rgba(0, 0, 0, 0.03);
}

body.light-mode .txt-record-item:hover,
body.light-mode .dkim-record-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .txt-record-value,
body.light-mode .dkim-record-value {
  color: var(--text-secondary, #333);
}

/* ================================================================
 * 30.  STATUS BADGES (generic)
 * ================================================================ */

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  line-height: 1.4;
}

.badge--success {
  background: rgba(0, 200, 83, 0.12);
  color: var(--color-success, #00c853);
}

.badge--warning {
  background: rgba(255, 171, 0, 0.12);
  color: var(--color-warning, #ffab00);
}

.badge--error {
  background: rgba(255, 23, 68, 0.12);
  color: var(--color-error, #ff1744);
}

.badge--info {
  background: rgba(64, 168, 255, 0.12);
  color: var(--color-info, #40a8ff);
}

.badge--neutral {
  background: rgba(153, 153, 153, 0.12);
  color: var(--text-muted, #999);
}

/* ================================================================
 *  END OF STYLESHEET
 * ================================================================ */
