/* ========================================================================
   Variables
   ======================================================================== */
:root {
  --clr-bg-gradient-start: #000000;
  --clr-bg-gradient-end:   #0a0a0a;
  --clr-bg-medium:         #1c1c1c;
  --clr-bg-overlay:        rgba(8,34,67,0.5);
  --clr-bg-modal-start:    #191919;
  --clr-bg-modal-end:      #333333;
  --clr-text:              #ffffff;
  --clr-text-muted:        #bbbbbb;
  --clr-primary:           #0054FF;
  --clr-primary-dark:      #0447D3;
  --clr-border:            #555555;
  --clr-border-hover:      #777777;
}

/* ========================================================================
   1) RESET & SCROLLBARS
   ======================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-border) var(--clr-bg-medium);
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg-medium);
}
::-webkit-scrollbar-thumb {
  background-color: var(--clr-border);
  border-radius: 6px;
  border: 3px solid var(--clr-bg-medium);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--clr-border-hover);
}

/* ========================================================================
   2) BASE LAYOUT & TYPOGRAPHY
   ======================================================================== */
html {
  font-size: 16px;
}

body {
  font-family:
    -apple-system,      /* macOS & iOS SF Pro */
    BlinkMacSystemFont, /* Chrome on macOS */
    "Segoe UI",         /* Windows */
    Roboto,             /* Android/Chrome OS */
    "Helvetica Neue",   /* fallback on many devices */
    Arial, sans-serif;  /* last resort */
  color: var(--clr-text);
  background: linear-gradient(
    120deg,
    var(--clr-bg-gradient-start),
    var(--clr-bg-gradient-end)
  );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, color 0.3s;
}

/* Dark / Light modes */
.dark-mode {
  background: var(--clr-bg-gradient-start);
  color: var(--clr-text);
}
.light-mode {
  background: #ffffff;
  color: #000000;
}
.light-mode .container {
  background-color: #333333;
  color: var(--clr-text);
}

/* ========================================================================
   3) CONTAINER (MAIN CONTENT)
   ======================================================================== */
.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;
}

.container.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

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

.input-wrapper {
    margin-bottom: 28px;
}

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

/* ========================================================================
   4) NAVIGATION BAR & LOGO
   ======================================================================== */
.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);
    backdrop-filter: blur(0px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
    z-index: 1300;
    line-height: 1;
}

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

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.light-mode .nav-menu.scrolled {
    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;
}

body.dark-mode .nav-menu.scrolled {
    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);
}

/* Ensure plain-link always inherits the computed text color */
.plain-link {
  color: inherit;
  text-decoration: none;
}

.plain-link:hover,
.plain-link:focus {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.light-mode .plain-link {
  color: inherit;
}

/* ========================================================================
   5) 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 {
    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::-webkit-scrollbar {
    width: 8px;
}

.flyout-menu::-webkit-scrollbar-track {
    background: transparent;
}

.flyout-menu::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

body.light-mode .flyout-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
}
/* ========================================================================
   6) MODE SWITCH (Dark / Light Toggle)
   ======================================================================== */
.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;
}

/* Light mode - darker toggle for visibility */
body.light-mode .mode-switch label {
  background: #999 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Dark mode - lighter toggle for visibility */
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);
}

/* ========================================================================
   7) TITLE & SUBTITLE
   ======================================================================== */
.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;
}

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

.title-section {
    text-align: center;
    margin-bottom: 30px;
}
.title-section .logo {
    max-width: 80px;
    margin-bottom: 10px;
}
.title-section .main-title {
    font-size: 1.75rem;
    margin: 0;
    line-height: 1;
}
.title-section .main-title .bold {
    font-weight: 700;
}
.title-section .main-title .thin {
    font-weight: 300;
}
.title-section .sub-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0 16px;
    color: #fff;
}
.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; /* Thin weight */
}
.header_title {
    text-align: center;
    font-size: 48px;
    padding-top: 35px;
    padding-bottom: 15px;
    margin: 5px;
}

.sub-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 1rem;
  text-align: center;
  color: var(--clr-text);
  letter-spacing: 0.03em;
}

/* Utility for centering text */
.centered {
  text-align: center;
}

.title-section .main-title .bold {
  font-weight: 700 !important;
}
.title-section .main-title .thin {
  font-weight: 300 !important;
}
/* ========================================================================
   8) CREATOR CREDIT & MUTED 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;
}

/* ========================================================================
   9) FORM INPUT & BUTTONS
   ======================================================================== */
/* Label styling */
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 */
.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;
}

/* Form Input - Select optgroup styling */
.form-input option {
    background-color: #1a1a1a;
    color: #fff;
    padding: 8px;
}

.form-input optgroup {
    background-color: #0a0a0a;
    color: #26c4ff;
    font-weight: 700;
    font-style: normal;
    padding: 6px 0;
    margin-top: 4px;
}

body.light-mode .form-input option {
    background-color: #ffffff;
    color: #000;
}

body.light-mode .form-input optgroup {
    background-color: #f3f4f6;
    color: #0054ff;
    font-weight: 700;
}

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

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

.submit-button.secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.submit-button.secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

body.light-mode .submit-button.secondary {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #000 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body.light-mode .submit-button.secondary:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
}

/* Button Size Variants */
.submit-button.small {
    padding: 10px 18px;
    font-size: 13px;
    min-width: 100px;
}

.submit-button.small .button-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

/* Button Icon */
.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);
}

/* ========================================================================
   10) BULK LOOKUP BUTTONS
   ======================================================================== */
.bulk-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    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;
}

/* ========================================================================
   11) FOOTER - CONSOLIDATED & OPTIMIZED
   ======================================================================== */
.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;
}

/* Keep old footer classes for compatibility */
.footer {
  text-align: center;
  font-size: 0.5rem;
  margin: 1rem 0 2rem;
}

.footer-link {
  color: var(--clr-text);
  text-decoration: none;
  margin: 0 0.25rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--clr-text-muted);
}

.light-mode .footer-link {
  color: #000000;
}

/* ========================================================================
   12) MODAL & ERROR BOX
   ======================================================================== */
#processingModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-bg-overlay);
  z-index: 9999;
}

#processingModal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

#processingModalContent {
  background: linear-gradient(
    to bottom,
    var(--clr-bg-modal-start),
    var(--clr-bg-modal-end)
  );
  padding: 20px;
  width: 45%;
  max-width: 400px;
  min-width: 320px;
  border: 1px solid #97B8D5;
  border-radius: 15px;
  text-align: center;
  color: var(--clr-text);
}

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

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

/* ========================================================================
   12a) DNS RECORDS SECTION
   ======================================================================== */
.dns-records-section {
    margin-top: 20px;
    padding: 24px;
    background-color: #111;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

body.dark-mode .dns-records-section {
    background-color: #111 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

body.light-mode .dns-records-section {
    background-color: #f9f9f9 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #000 !important;
}

/* ========================================================================
   13) AUTOCOMPLETE SUGGESTIONS
   ======================================================================== */
.search-results {
    position: absolute;
    width: calc(100% - 12px);
    background: #2c2c2c;
    border: 1px solid var(--clr-border);
    border-radius: 5px;
    max-height: 200px;
    margin-top: -5px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    list-style: none;
    padding: 0;
    margin-left: 0;
}

body.dark-mode .search-results {
    background: #2c2c2c !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.light-mode .search-results {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-results li {
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
    color: #fff;
}

body.dark-mode .search-results li {
    color: #fff !important;
}

body.light-mode .search-results li {
    color: #000 !important;
}

.search-results li:hover {
    background: #3a3a3a;
}

body.dark-mode .search-results li:hover {
    background: #3a3a3a !important;
}

body.light-mode .search-results li:hover {
    background: #f0f0f0 !important;
}

/* ========================================================================
   14) RESPONSIVE ADJUSTMENTS
   ======================================================================== */
/* 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) {
  .container {
    padding: 20px 16px;
  }

  .content {
    margin-top: 70px;
    margin-bottom: 24px;
  }

  .hero-section {
    margin-bottom: 56px;
  }

  .logo {
    max-width: 100px;
  }

  .form-container {
    padding: 48px 40px;
    max-width: 580px;
  }

  .form-input {
    font-size: 16px;
    padding: 20px 24px;
  }

  button,
  .submit-button {
    padding: 16px 30px;
    font-size: 16px;
  }

  .nav-links {
    display: none !important;
  }

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

  .flyout-menu {
    width: 85%;
    max-width: 400px;
    padding: 60px 20px 20px 20px;
    gap: 3px;
  }

  .flyout-menu a {
    padding: 12px 14px;
    font-size: 14px;
  }

  .flyout-menu .flyout-close {
    padding-top: 14px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 16px 12px;
  }

  .content {
    margin-top: 64px;
  }

  .hero-section {
    margin-bottom: 32px;
    padding: 0 12px;
  }

  .logo {
    max-width: 80px;
  }

  .title {
    font-size: 1.5rem;
  }

  .form-container {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .form-input {
    font-size: 14px;
    padding: 16px 18px;
  }

  .input-wrapper {
    margin-bottom: 24px;
  }

  label {
    font-size: 12px;
    margin-bottom: 12px;
  }

  button,
  .submit-button {
    padding: 14px 24px;
    font-size: 14px;
  }

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

  .form-actions .submit-button {
    width: 100%;
    justify-content: center;
  }

  .submit-button.primary {
    min-width: auto;
  }

  .submit-button.secondary {
    min-width: auto;
  }

  .submit-button.small {
    padding: 12px 20px;
    font-size: 14px;
    min-width: auto;
  }

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

  .flyout-menu {
    width: 100%;
    max-width: 100%;
    padding: 55px 16px 16px 16px;
    gap: 2px;
  }

  .flyout-menu a {
    padding: 11px 12px;
    font-size: 14px;
  }

  .flyout-menu .flyout-close {
    padding-top: 12px;
  }
}

/* ========================================================================
   15) HIDE reCAPTCHA BADGE
   ======================================================================== */
.grecaptcha-badge,
.hide-recaptcha {
  visibility: hidden !important;
  display: none !important;
}

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

/* ========================================================================
   17) DNS LOOKUP SELECTORS - Dropdown Style
   ======================================================================== */

.selector-section {
  max-width: 800px;
  margin: 24px auto;
  padding: 20px 24px;
  background-color: rgba(17, 17, 17, 0.98);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

body.light-mode .selector-section {
  background-color: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.selector-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: 0.3px;
}

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

.selector-dropdown {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.selector-dropdown:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.selector-dropdown:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #0054ff;
  box-shadow: 0 0 0 3px rgba(0, 84, 255, 0.2);
}

.selector-dropdown option {
  background-color: #1a1a1a;
  color: #fff;
  padding: 8px;
}

.selector-dropdown optgroup {
  background-color: #0a0a0a;
  color: #26c4ff;
  font-weight: 700;
  font-style: normal;
  padding: 6px 0;
  margin-top: 4px;
}

body.light-mode .selector-dropdown {
  color: #000;
  background-color: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

body.light-mode .selector-dropdown:hover {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.3);
}

body.light-mode .selector-dropdown:focus {
  background-color: rgba(0, 0, 0, 0.06);
  border-color: #0054ff;
}

body.light-mode .selector-dropdown option {
  background-color: #ffffff;
  color: #000;
}

body.light-mode .selector-dropdown optgroup {
  background-color: #f3f4f6;
  color: #0054ff;
  font-weight: 700;
}

/* Action Buttons Container */
.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Responsive - Dropdown Adjustments for Mobile */
@media (max-width: 768px) {
  .selector-section {
    padding: 18px 20px;
    margin: 20px auto;
  }

  .selector-label {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .selector-dropdown {
    padding: 11px 14px;
    font-size: 14px;
    padding-right: 36px;
  }
}

@media (max-width: 480px) {
  .selector-section {
    padding: 16px 18px;
    margin: 16px auto;
  }

  .selector-label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .selector-dropdown {
    padding: 10px 12px;
    font-size: 13px;
    padding-right: 34px;
  }
}

/* ========================================================================
   DNS RECORDS DISPLAY STYLES
   ======================================================================== */

.records-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
  padding: 0;
}

.record-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

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

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

.record-box h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.record-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  font-family: 'Courier New', Courier, monospace;
  white-space: pre-wrap; /* Support multi-line records (e.g., DKIM with newlines) */
  word-wrap: break-word; /* Break long lines if needed */
}

/* Separator line between records */
.record-box + .record-box {
  margin-top: 16px;
}

/* Light mode adjustments */
body.light-mode .record-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .record-box:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .record-box p {
  color: #1f2937;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .record-box {
    padding: 16px 20px;
  }

  .record-box h3 {
    font-size: 16px;
  }

  .record-box p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .records-grid {
    gap: 16px;
  }

  .record-box {
    padding: 14px 18px;
  }

  .record-box h3 {
    font-size: 15px;
  }

  .record-box p {
    font-size: 13px;
  }
}

/* ========================================================================
   ENHANCED RESULTS HEADER
   ======================================================================== */

.results-header-section {
  background: linear-gradient(135deg, rgba(0, 84, 255, 0.05) 0%, rgba(38, 196, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.results-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 24px;
  flex-wrap: wrap;
}

.domain-info {
  flex: 1;
  min-width: 250px;
}

.results-domain-name {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #26c4ff;
  background: linear-gradient(135deg, #26c4ff 0%, #0054ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-break: break-all;
}

.results-subtitle {
  margin: 0;
  font-size: 16px;
  color: #9ca3af;
  font-weight: 500;
}

.action-buttons-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:hover {
  background: rgba(38, 196, 255, 0.15);
  border-color: #26c4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 196, 255, 0.2);
}

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

.btn-icon {
  font-size: 18px;
  line-height: 1;
}

.btn-text {
  letter-spacing: 0.3px;
}

.related-tools {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.related-tools-label {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-tools-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: rgba(0, 84, 255, 0.1);
  border: 1px solid rgba(0, 84, 255, 0.3);
  border-radius: 8px;
  color: #26c4ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tool-link:hover {
  background: rgba(0, 84, 255, 0.2);
  border-color: #0054ff;
  color: #fff;
  transform: translateX(4px);
}

/* Light Mode */
body.light-mode .results-header-section {
  background: linear-gradient(135deg, rgba(0, 84, 255, 0.08) 0%, rgba(38, 196, 255, 0.08) 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .results-domain-name {
  color: #0054ff;
}

body.light-mode .results-subtitle {
  color: #6b7280;
}

body.light-mode .action-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  color: #000;
}

body.light-mode .action-btn:hover {
  background: rgba(0, 84, 255, 0.15);
  border-color: #0054ff;
}

body.light-mode .related-tools {
  border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .related-tools-label {
  color: #6b7280;
}

body.light-mode .tool-link {
  background: rgba(0, 84, 255, 0.08);
  border-color: rgba(0, 84, 255, 0.2);
  color: #0054ff;
}

body.light-mode .tool-link:hover {
  background: rgba(0, 84, 255, 0.15);
  color: #0054ff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .results-header-section {
    padding: 24px 20px;
    margin-bottom: 24px;
  }

  .results-title-row {
    flex-direction: column;
    gap: 20px;
  }

  .results-domain-name {
    font-size: 26px;
  }

  .action-buttons-group {
    width: 100%;
  }

  .action-btn {
    flex: 1;
    justify-content: center;
    min-width: 100px;
  }

  .related-tools-buttons {
    flex-direction: column;
  }

  .tool-link {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .results-header-section {
    padding: 20px 16px;
    margin-bottom: 20px;
  }

  .results-domain-name {
    font-size: 22px;
  }

  .results-subtitle {
    font-size: 14px;
  }

  .action-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .tool-link {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ========================================================================
   LOADING SPINNER ANIMATION
   ======================================================================== */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================================================
   RECORD VALUE AND DOMAIN LABEL COLORS
   ======================================================================== */

/* Record values - light gray in dark mode, dark gray in light mode */
.record-value {
  color: #e5e7eb;
}

body.light-mode .record-value {
  color: #1f2937 !important;
}

/* Domain label - white in dark mode, black in light mode */
.record-label-domain {
  color: #ffffff !important;
}

body.light-mode .record-label-domain {
  color: #000000 !important;
}

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

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

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

.spinner {
  display: inline;
  font-size: 1rem;
  white-space: nowrap;
}

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

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

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

@keyframes dotPulse {
  0%, 80%, 100% {
    transform: scale(0.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;
  }
}
