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


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

/* 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_title{ display:flex; flex-direction:column; align-items:center; }

.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 {
    width: 100%;
    max-width: 200px;
    padding: 10px 14px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #555;
    background: linear-gradient(to bottom, #0054FF, #0447D3);
    color: #fff;
    font-size: 14px;
    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;
  }
}

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

/* ================================================================
 * CSV MATCH UTILITY - SPECIFIC STYLES
 * ================================================================ */

/* Container for CSV utility form - centered narrow layout */
.container {
    max-width: 460px;
    margin: 80px auto 0;
    padding: 15px;
    background-color: #1c1c1c;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, color 0.3s ease;
}

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

body.light-mode .container {
    background-color: #333 !important;
    color: #fff !important;
}

/* ----------------------------------------------------------------
   CSV FORM INPUT STYLING - matches original
   ---------------------------------------------------------------- */
#csvMergeForm .form-input,
#csvMergeForm button,
#csvMergeForm select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #555;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #444;
    color: #fff;
    font-size: 16px;
}

#csvMergeForm .form-input::placeholder {
    color: #bbb;
}

#csvMergeForm select {
    cursor: pointer;
}

#csvMergeForm button {
    background: linear-gradient(to bottom, #0054FF, #0447D3);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

#csvMergeForm button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#csvMergeForm button:hover:not(:disabled) {
    background: linear-gradient(to bottom, #0447D3, #0054FF);
}

/* Submit button wrapper - centered */
.submit-button-wrapper {
    text-align: center;
    margin-top: 10px;
}

.submit-button-wrapper button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* Form labels */
#csvMergeForm label {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
    color: #fff;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    opacity: 1;
}

/* Light mode - form stays dark like original */
body.light-mode #csvMergeForm .form-input,
body.light-mode #csvMergeForm select {
    background-color: #444 !important;
    color: #fff !important;
    border-color: #555 !important;
}

body.light-mode #csvMergeForm .form-input::placeholder {
    color: #bbb !important;
}

body.light-mode #csvMergeForm label {
    color: #fff !important;
}

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

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

/* Title section styling in container */
.container .title-section {
    text-align: center;
    margin-bottom: 30px;
}

.container .title-section .logo {
    max-width: 80px;
    margin-bottom: 10px;
}

.container .title-section .main-title {
    font-size: 1.75rem;
    margin: 0;
    line-height: 1;
    color: #fff;
}

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

.container .title-section .creator {
    font-size: 8pt;
    color: #fff;
}

.container .title-section .creator a.creator-link {
    color: #fff;
    text-decoration: none;
}

.container .title-section .creator a.creator-link:hover {
    text-decoration: underline;
}

/* Light mode - container title stays white */
body.light-mode .container .title-section .main-title,
body.light-mode .container .title-section .sub-title,
body.light-mode .container .title-section .creator,
body.light-mode .container .title-section .creator a.creator-link {
    color: #fff !important;
}

/* Text block for instructions */
.text-block {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    line-height: 1.5;
    padding: 0 15px;
    transition: color 0.3s ease;
}

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

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

/* Content link styling */
.content-link {
    color: #0054FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-link:hover {
    color: #0F80FF;
}

body.light-mode .content-link {
    color: #0054FF !important;
}

body.light-mode .content-link:hover {
    color: #0033aa !important;
}

/* Disclaimer block */
.disclaimer-block {
    max-width: 420px;
    margin: 20px auto 40px;
    padding: 0 15px;
}

.disclaimer-block .small {
    font-size: 8px;
    text-align: left;
    line-height: 1.4;
    transition: color 0.3s ease;
}

body.dark-mode .disclaimer-block .small {
    color: #999 !important;
}

body.light-mode .disclaimer-block .small {
    color: #666 !important;
}

/* Output boxes */
#top-outputBox,
#outputBox {
    width: 95%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #555;
    border-radius: 7px;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-y: auto;
    max-height: 450px;
    resize: vertical;
    position: relative;
    display: none;
}

#top-outputBox {
    background-color: #000;
    color: #fff;
}

#outputBox {
    background-color: #333;
    color: #fff;
}

/* Footer title section override for footer brand */
.footer-title-section {
    margin: 0;
    padding: 0;
}

.footer-title-section .logo-title {
    margin: 0;
    padding: 0;
}

/* Honeypot field - hidden from users */
.hidden-honeypot {
    display: none !important;
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Required asterisk */
.required-asterisk {
    color: red;
}

/* New search buttons */
.new-search-button {
    margin-top: 10px;
    width: 100%;
}

.new-search-button2 {
    margin: 10px auto;
    padding: 4px;
    width: 22%;
    background: transparent;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    color: #ccc;
}

.new-search-button2:hover {
    background: #242424;
    color: #fff;
}

/* Processing modal */
#processingModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 34, 67, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

#processingModalContent {
    background: linear-gradient(to bottom, #191919, #333);
    padding: 20px;
    border: 1px solid #97B8D5;
    width: 45%;
    text-align: center;
    border-radius: 15px;
    color: #fff;
}

body.dark-mode #processingModalContent {
    background-color: #333;
}

body.light-mode #processingModalContent {
    background-color: #474747;
}

/* Spinner animation */
.spinner {
    font-size: 1rem;
    white-space: nowrap;
}

.spinner .dot {
    display: inline-block;
    animation: spin 1.2s linear infinite;
}

.spinner .dot:nth-child(1) {
    animation-delay: -0.2s;
}

.spinner .dot:nth-child(2) {
    animation-delay: -0.1s;
}

@keyframes spin {
    0%, 80%, 100% {
        transform: scale(0.5);
    }
    40% {
        transform: scale(1);
    }
}

/* Summary and DNS records titles */
.summary-title,
.dns-records-title {
    font-size: 8pt;
    margin-top: 22px;
    padding-top: 20px;
}

/* Mobile adjustments for CSV utility */
@media (max-width: 600px) {
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: 100vh;
        margin: 0;
        padding: 20px 0;
    }

    .container {
        width: 90%;
        max-width: 460px;
        margin: 60px auto 0;
        padding: 15px;
    }

    .text-block {
        width: 90%;
        max-width: 450px;
        margin: 0 auto;
    }

    .disclaimer-block {
        width: 90%;
        max-width: 420px;
    }
}

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