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

  /* Mobile responsive - flyout menu keeps 320px fixed width like lookup.dnsai.com */
}

/* 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: 0;
  gap: 24px;
  flex-wrap: wrap;
}

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

.results-domain-name {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.4;
  word-break: break-word;
}

body.dark-mode .results-domain-name {
  color: #e5e7eb;
}

body.light-mode .results-domain-name {
  color: #1f2937;
}

.results-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
}

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

body.light-mode .results-subtitle {
  color: #9ca3af;
}

/* Email Analysis Header */
.email-analysis-header {
  width: 100%;
}

.analysis-section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

body.dark-mode .analysis-section-title {
  color: #ffffff;
}

body.light-mode .analysis-section-title {
  color: #1f2937;
}

.email-info-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.email-info-label {
  flex-shrink: 0;
  width: 60px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 2px;
}

body.dark-mode .email-info-label {
  color: #6b7280;
}

body.light-mode .email-info-label {
  color: #9ca3af;
}

.email-info-value {
  flex: 1;
  font-size: 15px;
  line-height: 1.4;
  word-break: break-word;
}

body.dark-mode .email-info-value {
  color: #e5e7eb;
}

body.light-mode .email-info-value {
  color: #1f2937;
}

/* Subject styling - larger and bolder */
.email-info-row:first-child .email-info-value {
  font-size: 17px;
  font-weight: 600;
}

body.dark-mode .email-info-row:first-child .email-info-value {
  color: #ffffff;
}

body.light-mode .email-info-row:first-child .email-info-value {
  color: #111827;
}

/* From/To email addresses */
.email-info-value.email-from,
.email-info-value.email-to {
  font-family: 'SF Mono', 'Fira Code', 'Monaco', monospace;
  font-size: 13px;
}

body.dark-mode .email-info-value.email-from,
body.dark-mode .email-info-value.email-to {
  color: #9ca3af;
}

body.light-mode .email-info-value.email-from,
body.light-mode .email-info-value.email-to {
  color: #6b7280;
}

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

/* ========================================================================
   EMAIL HEADER ANALYZER STYLES
   ======================================================================== */

/* Header Textarea */
.header-textarea {
  min-height: 280px;
  resize: vertical;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.input-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--clr-text-muted);
  opacity: 0.8;
}

body.light-mode .input-hint {
  color: #666;
}

/* Drag and Drop Styles */
.header-textarea.drag-over {
  border-color: #26c4ff !important;
  background: rgba(38, 196, 255, 0.08) !important;
  box-shadow:
    0 0 0 4px rgba(38, 196, 255, 0.2),
    inset 0 0 20px rgba(38, 196, 255, 0.1) !important;
}

body.light-mode .header-textarea.drag-over {
  border-color: #0054ff !important;
  background: rgba(0, 84, 255, 0.06) !important;
  box-shadow:
    0 0 0 4px rgba(0, 84, 255, 0.15),
    inset 0 0 20px rgba(0, 84, 255, 0.08) !important;
}

.header-textarea.file-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Drop Notification */
.drop-notification {
  position: absolute;
  bottom: 164px;
  left: 0;
  right: 0;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  animation: slideIn 0.3s ease;
  z-index: 10;
}

.drop-notification-success {
  background: rgba(34, 197, 94, 0.9);
  color: #ffffff;
  border: 1px solid rgba(34, 197, 94, 1);
}

.drop-notification-error {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: 1px solid rgba(239, 68, 68, 1);
}

.drop-notification-info {
  background: rgba(38, 196, 255, 0.9);
  color: #ffffff;
  border: 1px solid rgba(38, 196, 255, 1);
}

body.light-mode .drop-notification-success {
  background: rgba(34, 197, 94, 0.9);
  color: #ffffff;
}

body.light-mode .drop-notification-error {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
}

body.light-mode .drop-notification-info {
  background: rgba(0, 84, 255, 0.9);
  color: #ffffff;
}

.drop-notification.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input wrapper needs relative positioning for notification */
.input-wrapper {
  position: relative;
}

/* Analysis Sections */
.analysis-section {
  margin-bottom: 32px;
  padding: 24px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

body.dark-mode .analysis-section {
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .analysis-section {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .section-title {
  border-bottom-color: rgba(0, 0, 0, 0.1);
  color: #333;
}

.section-icon {
  display: none; /* Hide emoji icons */
}

.section-title.collapsible {
  cursor: pointer;
  user-select: none;
}

.section-title.collapsible:hover {
  color: #26c4ff;
}

.collapse-icon {
  margin-left: auto;
  transition: transform 0.3s ease;
}

/* Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

body.dark-mode .summary-item {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(38, 196, 255, 0.5);
}

body.light-mode .summary-item {
  background: rgba(0, 0, 0, 0.02);
  border-left-color: rgba(0, 84, 255, 0.5);
}

body.dark-mode .summary-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

body.light-mode .summary-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--clr-text-muted);
  font-weight: 600;
}

body.light-mode .summary-label {
  color: #666;
}

.summary-value {
  font-size: 14px;
  word-break: break-word;
  line-height: 1.4;
}

body.light-mode .summary-value {
  color: #333;
}

/* Summary value variants */
.summary-value-small {
  font-size: 12px;
  opacity: 0.85;
}

.summary-value-mono {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  word-break: break-all;
}

.summary-value-highlight {
  color: #26c4ff;
  font-weight: 600;
}

body.light-mode .summary-value-highlight {
  color: #0054ff;
}

.summary-hint {
  font-size: 11px;
  opacity: 0.6;
  margin-left: 8px;
}

/* From field multiline display */
.summary-from-multiline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-from-multiline .from-name {
  font-weight: 600;
  font-size: 14px;
}

.summary-from-multiline .from-email {
  font-size: 13px;
  opacity: 0.85;
  color: #26c4ff;
}

body.light-mode .summary-from-multiline .from-email {
  color: #0054ff;
}

/* Summary item variants */
.summary-item-info {
  border-left-color: rgba(38, 196, 255, 0.7) !important;
}

.summary-item-warning {
  border-left-color: rgba(255, 193, 7, 0.7) !important;
}

body.dark-mode .summary-item-warning {
  background: rgba(255, 193, 7, 0.08);
}

body.light-mode .summary-item-warning {
  background: rgba(255, 193, 7, 0.08);
}

.summary-item-error {
  border-left-color: rgba(239, 68, 68, 0.7) !important;
}

body.dark-mode .summary-item-error {
  background: rgba(239, 68, 68, 0.08);
}

body.light-mode .summary-item-error {
  background: rgba(239, 68, 68, 0.06);
}

.summary-item-muted {
  opacity: 0.75;
}

/* Summary section headers (for Forwarding, Bounce, Campaign sections) */
.summary-section-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
}

body.dark-mode .summary-section-header {
  background: rgba(38, 196, 255, 0.1);
  color: #26c4ff;
  border-left: 3px solid #26c4ff;
}

body.light-mode .summary-section-header {
  background: rgba(0, 84, 255, 0.08);
  color: #0054ff;
  border-left: 3px solid #0054ff;
}

.section-header-warning {
  border-left-color: #ffc107 !important;
}

body.dark-mode .section-header-warning {
  background: rgba(255, 193, 7, 0.12);
  color: #ffc107;
}

body.light-mode .section-header-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #d39e00;
}

.section-header-marketing {
  border-left-color: #a855f7 !important;
}

body.dark-mode .section-header-marketing {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

body.light-mode .section-header-marketing {
  background: rgba(168, 85, 247, 0.08);
  color: #7c3aed;
}

.section-icon-small {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ========================================================================
   Infrastructure Comparison Section (Envelope vs. Sender vs. Server)
   ======================================================================== */
.infrastructure-section {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.infrastructure-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: normal;
}

body.light-mode .infrastructure-title {
  color: #333;
}

.infrastructure-title .section-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.infrastructure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

/* Infrastructure Cards */
.infra-card {
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s ease;
  position: relative;
}

body.dark-mode .infra-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .infra-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .infra-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

body.light-mode .infra-card:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Card variations */
.infra-card.infra-from {
  border-left: 3px solid #22c55e;
}

.infra-card.infra-envelope {
  border-left: 3px solid #f59e0b;
}

.infra-card.infra-envelope.match {
  border-left-color: #22c55e;
}

.infra-card.infra-envelope.mismatch {
  border-left-color: #ef4444;
}

.infra-card.infra-server {
  border-left: 3px solid #60a5fa;
}

.infra-card.infra-server.match {
  border-left-color: #22c55e;
}

.infra-card.infra-server.mismatch {
  border-left-color: #f59e0b;
}

.infra-card.infra-service {
  border-left: 3px solid #a855f7;
}

/* Card Header */
.infra-card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.infra-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-from {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.badge-envelope {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.badge-server {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

.badge-service {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

body.light-mode .badge-from {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

body.light-mode .badge-envelope {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

body.light-mode .badge-server {
  background: rgba(96, 165, 250, 0.15);
  color: #2563eb;
}

body.light-mode .badge-service {
  background: rgba(168, 85, 247, 0.15);
  color: #9333ea;
}

.infra-label {
  font-size: 11px;
  color: var(--clr-text-muted);
}

body.light-mode .infra-label {
  color: #666;
}

.infra-status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
}

.status-match {
  color: #22c55e;
}

.status-mismatch {
  color: #ef4444;
}

/* Card Content */
.infra-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.infra-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.infra-key {
  flex-shrink: 0;
  color: var(--clr-text-muted);
  font-weight: 500;
  min-width: 60px;
}

body.light-mode .infra-key {
  color: #666;
}

.infra-value {
  word-break: break-all;
  color: var(--clr-text);
}

body.light-mode .infra-value {
  color: #333;
}

.infra-mx,
.infra-helo,
.infra-ip {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
}

.infra-gateway,
.infra-service-name {
  color: #26c4ff;
  font-weight: 500;
}

body.light-mode .infra-gateway,
body.light-mode .infra-service-name {
  color: #0054ff;
}

.infra-server-name {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
  color: #60a5fa;
}

body.light-mode .infra-server-name {
  color: #2563eb;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .infrastructure-grid {
    grid-template-columns: 1fr;
  }
}

/* Copy Icon */
.copy-icon {
  font-family: Arial, sans-serif;
  line-height: 1;
}

/* Copy Field Button */
.copy-field-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  font-size: 14px;
}

.copy-field-btn .copy-icon {
  font-size: 12px;
}

body.dark-mode .copy-field-btn {
  color: #6b7280;
}

body.light-mode .copy-field-btn {
  color: #9ca3af;
}

body.dark-mode .copy-field-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #26c4ff;
  border: 1px solid #6b7280;
}

body.light-mode .copy-field-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0054ff;
  border: 1px solid #9ca3af;
}

/* Section Title Row - for title + button alignment */
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.section-title-row .section-title {
  flex: 1;
  margin-bottom: 0;
}

/* Raw Headers section - add spacing below title row */
#rawSection .section-title-row {
  margin-bottom: 5px;
}

/* Copy Raw Headers Button */
.copy-raw-headers-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  flex-shrink: 0;
}

.copy-raw-headers-btn .copy-icon {
  font-size: 11px;
}

body.dark-mode .copy-raw-headers-btn {
  color: #6b7280;
}

body.light-mode .copy-raw-headers-btn {
  color: #9ca3af;
}

body.dark-mode .copy-raw-headers-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #26c4ff;
  border: 1px solid #6b7280;
}

body.light-mode .copy-raw-headers-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0054ff;
  border: 1px solid #9ca3af;
}

/* Authentication Results */
.auth-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-card {
  padding: 16px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

body.dark-mode .auth-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .auth-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-label {
  font-size: 16px;
  font-weight: 700;
}

body.light-mode .auth-label {
  color: #333;
}

.auth-description {
  font-size: 12px;
  color: var(--clr-text-muted);
}

body.light-mode .auth-description {
  color: #666;
}

.auth-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.auth-result.result-pass {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.auth-result.result-fail {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.auth-result.result-warn {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.auth-result.result-none {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.result-icon {
  font-size: 16px;
}

.auth-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--clr-text-muted);
  word-break: break-all;
}

body.light-mode .auth-details {
  border-top-color: rgba(0, 0, 0, 0.05);
  color: #555;
}

.auth-signers {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.signers-label {
  font-size: 12px;
  color: var(--clr-text-muted);
  font-weight: 600;
}

.signer-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.signer-tag.result-pass {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.signer-tag.result-fail {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.signer-tag.result-none {
  background: rgba(156, 163, 175, 0.1);
  color: #9ca3af;
}

/* Email Journey Timeline */
.journey-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.journey-hop {
  display: flex;
  gap: 16px;
  position: relative;
  padding: 16px 0;
}

.journey-hop:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #26c4ff, rgba(38, 196, 255, 0.2));
}

.hop-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  z-index: 1;
}

body.dark-mode .hop-number {
  background: linear-gradient(135deg, #26c4ff, #0054ff);
  color: #fff;
}

body.light-mode .hop-number {
  background: linear-gradient(135deg, #0054ff, #0040cc);
  color: #fff;
}

.hop-first .hop-number {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.hop-last .hop-number {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.hop-content {
  flex: 1;
  min-width: 0;
}

.hop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.hop-servers {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hop-from,
.hop-by {
  font-size: 14px;
  word-break: break-all;
  line-height: 1.4;
}

body.light-mode .hop-from,
body.light-mode .hop-by {
  color: #333;
}

.hop-protocol {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.dark-mode .hop-protocol {
  background: rgba(38, 196, 255, 0.15);
  color: #26c4ff;
}

body.light-mode .hop-protocol {
  background: rgba(0, 84, 255, 0.1);
  color: #0054ff;
}

.hop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

.hop-time,
.hop-location,
.hop-asn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--clr-text-muted);
}

body.light-mode .hop-time,
body.light-mode .hop-location,
body.light-mode .hop-asn {
  color: #666;
}

.hop-delay {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.hop-delay.delay-fast {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.hop-delay.delay-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.hop-delay.delay-slow {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Technology Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: default;
}

body.dark-mode .tech-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.light-mode .tech-tag {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #333;
}

.tech-tag:hover {
  transform: translateY(-2px);
}

body.dark-mode .tech-tag:hover {
  background: rgba(38, 196, 255, 0.15);
  border-color: rgba(38, 196, 255, 0.3);
}

body.light-mode .tech-tag:hover {
  background: rgba(0, 84, 255, 0.1);
  border-color: rgba(0, 84, 255, 0.2);
}

.tech-tag.tech-email_gateway {
  border-left: 3px solid #10b981;
}

.tech-tag.tech-email_provider {
  border-left: 3px solid #0054ff;
}

.tech-tag.tech-technology {
  border-left: 3px solid #f59e0b;
}

.tech-tag.tech-mailer {
  border-left: 3px solid #ec4899;
}

.tech-tag.tech-user_agent {
  border-left: 3px solid #8b5cf6;
}

/* Raw Headers */
.raw-headers {
  max-height: 400px;
  overflow: auto;
  transition: max-height 0.3s ease;
}

.raw-headers.collapsed {
  max-height: 0;
  overflow: hidden;
}

.raw-headers pre {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: 'Courier New', Courier, monospace;
}

body.dark-mode .raw-headers pre {
  background: rgba(0, 0, 0, 0.3);
  color: #e5e7eb;
}

body.light-mode .raw-headers pre {
  background: rgba(0, 0, 0, 0.05);
  color: #374151;
}

/* Raw Headers Syntax Highlighting */
.raw-highlight-protocol {
  color: #60a5fa;
  font-weight: 600;
}

.raw-highlight-pass {
  color: #22c55e;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
}

.raw-highlight-fail {
  color: #ef4444;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
}

.raw-highlight-softfail {
  color: #f97316;
  font-weight: 700;
  background: rgba(249, 115, 22, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
}

.raw-highlight-neutral {
  color: #eab308;
  font-weight: 600;
  background: rgba(234, 179, 8, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Light mode adjustments for highlighting */
body.light-mode .raw-highlight-protocol {
  color: #2563eb;
}

body.light-mode .raw-highlight-pass {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.18);
}

body.light-mode .raw-highlight-fail {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.18);
}

body.light-mode .raw-highlight-softfail {
  color: #ea580c;
  background: rgba(249, 115, 22, 0.18);
}

body.light-mode .raw-highlight-neutral {
  color: #ca8a04;
  background: rgba(234, 179, 8, 0.15);
}

/* Enhanced Raw Headers Highlighting - Servers, Domains, Emails, IPs */

/* IP Addresses - Magenta/Pink */
.raw-highlight-ip {
  color: #e879f9;
  background: rgba(232, 121, 249, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Sending Server (from) - Blue */
.raw-highlight-keyword-from {
  color: #60a5fa;
  font-weight: 600;
}

.raw-highlight-server-from {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
}

/* Receiving Server (by) - Indigo */
.raw-highlight-keyword-by {
  color: #a78bfa;
  font-weight: 600;
}

.raw-highlight-server-by {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
}

/* Email Addresses - Cyan/Teal */
.raw-highlight-email {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Domains - Purple */
.raw-highlight-domain {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
}

.raw-highlight-param {
  color: #a1a1aa;
}

/* Bounce/Routing Headers - Orange */
.raw-highlight-bounce-header {
  color: #fb923c;
  font-weight: 600;
}

/* Marketing/Campaign Headers - Amber/Gold */
.raw-highlight-marketing-header {
  color: #fbbf24;
  font-weight: 600;
}

.raw-highlight-marketing-value {
  color: #fcd34d;
  opacity: 0.9;
}

/* Message-ID Headers - Slate */
.raw-highlight-msgid-header {
  color: #94a3b8;
  font-weight: 600;
}

.raw-highlight-msgid-value {
  color: #64748b;
}

/* Authentication Headers - Teal */
.raw-highlight-auth-header {
  color: #2dd4bf;
  font-weight: 700;
}

/* Microsoft Exchange Headers - Sky Blue */
.raw-highlight-ms-header {
  color: #38bdf8;
  font-weight: 500;
}

.raw-highlight-ms-value {
  color: #7dd3fc;
  opacity: 0.85;
}

/* Spam Score Headers - Rose/Red */
.raw-highlight-spam-header {
  color: #fb7185;
  font-weight: 600;
}

.raw-highlight-spam-value {
  color: #fda4af;
}

/* MIME/Content Headers - Emerald */
.raw-highlight-mime-header {
  color: #34d399;
  font-weight: 500;
}

.raw-highlight-mime-value {
  color: #6ee7b7;
  opacity: 0.9;
}

/* Core Email Headers (From, To, Subject, Date) - Bright Cyan */
.raw-highlight-core-header {
  color: #06b6d4;
  font-weight: 700;
}

/* Transit Encryption Highlighting - TLS, SMTP, Ciphers */

/* TLS Versions - Bright Green */
.raw-highlight-tls {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}

.raw-highlight-tls-label {
  color: #86efac;
}

/* ESMTPS/SMTPS (TLS encrypted) - Green */
.raw-highlight-smtp-secure {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* ESMTPSA (Authenticated + TLS) - Bright Lime */
.raw-highlight-smtp-auth-secure {
  color: #a3e635;
  background: rgba(163, 230, 53, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}

/* ESMTPA (Authenticated, no TLS) - Yellow/Warning */
.raw-highlight-smtp-auth {
  color: #facc15;
  background: rgba(250, 204, 21, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* ESMTP/SMTP (Basic, no auth/TLS) - Gray */
.raw-highlight-smtp-basic {
  color: #a1a1aa;
  background: rgba(161, 161, 170, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
}

/* HTTPS Transport - Blue */
.raw-highlight-https {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* STARTTLS - Teal */
.raw-highlight-starttls {
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* Cipher Suites - Cyan */
.raw-highlight-cipher-label {
  color: #67e8f9;
}

.raw-highlight-cipher {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

/* Encryption Keywords */
.raw-highlight-encryption-keyword {
  color: #a78bfa;
  font-weight: 500;
}

/* Light Mode Adjustments for Enhanced Highlighting */
body.light-mode .raw-highlight-ip {
  color: #c026d3;
  background: rgba(192, 38, 211, 0.12);
}

body.light-mode .raw-highlight-keyword-from {
  color: #2563eb;
}

body.light-mode .raw-highlight-server-from {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.12);
}

body.light-mode .raw-highlight-keyword-by {
  color: #7c3aed;
}

body.light-mode .raw-highlight-server-by {
  color: #6d28d9;
  background: rgba(109, 40, 217, 0.12);
}

body.light-mode .raw-highlight-email {
  color: #0891b2;
  background: rgba(8, 145, 178, 0.12);
}

body.light-mode .raw-highlight-domain {
  color: #9333ea;
  background: rgba(147, 51, 234, 0.12);
}

body.light-mode .raw-highlight-param {
  color: #71717a;
}

body.light-mode .raw-highlight-bounce-header {
  color: #ea580c;
}

body.light-mode .raw-highlight-marketing-header {
  color: #d97706;
}

body.light-mode .raw-highlight-marketing-value {
  color: #b45309;
}

body.light-mode .raw-highlight-msgid-header {
  color: #475569;
}

body.light-mode .raw-highlight-msgid-value {
  color: #64748b;
}

body.light-mode .raw-highlight-auth-header {
  color: #0d9488;
}

body.light-mode .raw-highlight-ms-header {
  color: #0284c7;
}

body.light-mode .raw-highlight-ms-value {
  color: #0369a1;
}

body.light-mode .raw-highlight-spam-header {
  color: #e11d48;
}

body.light-mode .raw-highlight-spam-value {
  color: #be123c;
}

body.light-mode .raw-highlight-mime-header {
  color: #059669;
}

body.light-mode .raw-highlight-mime-value {
  color: #047857;
}

body.light-mode .raw-highlight-core-header {
  color: #0891b2;
}

/* Light Mode - Transit Encryption */
body.light-mode .raw-highlight-tls {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.15);
}

body.light-mode .raw-highlight-tls-label {
  color: #15803d;
}

body.light-mode .raw-highlight-smtp-secure {
  color: #15803d;
  background: rgba(21, 128, 61, 0.15);
}

body.light-mode .raw-highlight-smtp-auth-secure {
  color: #65a30d;
  background: rgba(101, 163, 13, 0.15);
}

body.light-mode .raw-highlight-smtp-auth {
  color: #ca8a04;
  background: rgba(202, 138, 4, 0.15);
}

body.light-mode .raw-highlight-smtp-basic {
  color: #71717a;
  background: rgba(113, 113, 122, 0.12);
}

body.light-mode .raw-highlight-https {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
}

body.light-mode .raw-highlight-starttls {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.15);
}

body.light-mode .raw-highlight-cipher-label {
  color: #0891b2;
}

body.light-mode .raw-highlight-cipher {
  color: #0e7490;
  background: rgba(14, 116, 144, 0.12);
}

body.light-mode .raw-highlight-encryption-keyword {
  color: #7c3aed;
}

/* Check Point / Avanan Security Headers - Pink/Magenta */
.raw-highlight-checkpoint-header {
  color: #f472b6;
  font-weight: 600;
}

.raw-highlight-checkpoint-value {
  color: #f9a8d4;
  opacity: 0.9;
}

.raw-highlight-checkpoint-domain {
  color: #e879f9;
  background: rgba(232, 121, 249, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
}

/* Light Mode - Check Point Headers */
body.light-mode .raw-highlight-checkpoint-header {
  color: #db2777;
}

body.light-mode .raw-highlight-checkpoint-value {
  color: #be185d;
}

body.light-mode .raw-highlight-checkpoint-domain {
  color: #a21caf;
  background: rgba(162, 28, 175, 0.12);
}

/* No Data Message */
.no-data {
  text-align: center;
  padding: 24px;
  color: var(--clr-text-muted);
  font-style: italic;
}

body.light-mode .no-data {
  color: #666;
}

/* Email Header Analyzer Responsive */
@media (max-width: 768px) {
  .analysis-section {
    padding: 16px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .auth-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-result {
    width: 100%;
    justify-content: center;
  }

  .journey-hop {
    padding: 12px 0;
  }

  .hop-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .journey-hop:not(:last-child)::before {
    left: 15px;
    top: 44px;
  }

  .hop-header {
    flex-direction: column;
  }

  .hop-meta {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 16px;
  }

  .tech-tag {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ========================================================================
   ENHANCED AUTHENTICATION RESULT COLORS
   ======================================================================== */

/* Pass - Green */
.auth-result.result-pass {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Fail / Hardfail - Red */
.auth-result.result-fail {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Softfail - Orange/Amber */
.auth-result.result-softfail {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Neutral - Blue */
.auth-result.result-neutral {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Permanent Error - Dark Red/Maroon */
.auth-result.result-permerror {
  background: rgba(185, 28, 28, 0.15);
  color: #dc2626;
  border: 1px solid rgba(185, 28, 28, 0.3);
}

/* Temporary Error - Purple */
.auth-result.result-temperror {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Best Guess Pass - Teal */
.auth-result.result-bestguess {
  background: rgba(20, 184, 166, 0.15);
  color: #14b8a6;
  border: 1px solid rgba(20, 184, 166, 0.3);
}

/* Policy - Indigo */
.auth-result.result-policy {
  background: rgba(99, 102, 241, 0.15);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* None / Unknown - Gray */
.auth-result.result-none {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Signer tags with matching colors */
.signer-tag.result-pass {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.signer-tag.result-fail {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.signer-tag.result-softfail {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.signer-tag.result-neutral {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.signer-tag.result-permerror {
  background: rgba(185, 28, 28, 0.1);
  color: #dc2626;
}

.signer-tag.result-temperror {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.signer-tag.result-none {
  background: rgba(156, 163, 175, 0.1);
  color: #9ca3af;
}

/* Auth Extra Info */
.auth-extra-info {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'Courier New', Courier, monospace;
}

body.dark-mode .auth-extra-info {
  background: rgba(255, 255, 255, 0.03);
  color: #9ca3af;
}

body.light-mode .auth-extra-info {
  background: rgba(0, 0, 0, 0.03);
  color: #666;
}

/* PTR Server Info */
.ptr-server-info {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 11px;
}

.ptr-verified {
  color: #22c55e !important;
  font-weight: 500;
}

body.light-mode .ptr-verified {
  color: #16a34a !important;
}

.ptr-mismatch {
  color: #f59e0b !important;
  font-weight: 500;
}

body.light-mode .ptr-mismatch {
  color: #d97706 !important;
}

/* ========================================================================
   SPAM & SECURITY SCORES STYLES
   ======================================================================== */

.spam-scores-content {
  padding: 8px 0;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.provider-badge.provider-microsoft {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.15), rgba(0, 120, 212, 0.08));
  color: #0078d4;
  border: 1px solid rgba(0, 120, 212, 0.3);
}

.provider-badge.provider-google {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(52, 168, 83, 0.08));
  color: #4285f4;
  border: 1px solid rgba(66, 133, 244, 0.3);
}

.spam-scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.score-card {
  padding: 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

body.dark-mode .score-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .score-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.score-card:hover {
  transform: translateY(-2px);
}

body.dark-mode .score-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

body.light-mode .score-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.score-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.score-label {
  font-weight: 600;
  font-size: 14px;
}

body.dark-mode .score-label {
  color: #e5e7eb;
}

body.light-mode .score-label {
  color: #1f2937;
}

.score-provider {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.dark-mode .score-provider {
  color: #6b7280;
}

body.light-mode .score-provider {
  color: #9ca3af;
}

.score-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.score-value.score-good {
  color: #22c55e;
}

.score-value.score-warning {
  color: #f59e0b;
}

.score-value.score-bad {
  color: #ef4444;
}

.score-value.score-info {
  color: #3b82f6;
}

.score-value.score-neutral {
  color: #9ca3af;
}

.score-value.score-na {
  color: #6b7280;
  font-size: 20px;
}

.score-description {
  font-size: 12px;
  line-height: 1.4;
}

body.dark-mode .score-description {
  color: #9ca3af;
}

body.light-mode .score-description {
  color: #6b7280;
}

/* Rule Override Warning */
.rule-override-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  margin-top: 16px;
}

body.dark-mode .rule-override-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

body.light-mode .rule-override-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.override-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.override-content {
  flex: 1;
}

.override-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #f59e0b;
}

.override-details {
  font-size: 13px;
  line-height: 1.5;
}

body.dark-mode .override-details {
  color: #d4a574;
}

body.light-mode .override-details {
  color: #92400e;
}

/* Override codes badges */
.override-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.override-code {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

body.dark-mode .override-code {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

body.light-mode .override-code {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.3);
}

/* Microsoft-specific details in override */
.override-ms-details {
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 4px;
}

body.dark-mode .override-ms-details {
  background: rgba(0, 0, 0, 0.3);
  color: #9ca3af;
}

body.light-mode .override-ms-details {
  background: rgba(0, 0, 0, 0.05);
  color: #6b7280;
}

/* Override source header */
.override-source {
  font-size: 11px;
  margin-top: 8px;
}

body.dark-mode .override-source {
  color: #6b7280;
}

body.light-mode .override-source {
  color: #9ca3af;
}

.override-source code,
.override-header code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

body.dark-mode .override-source code,
body.dark-mode .override-header code {
  background: rgba(0, 0, 0, 0.3);
  color: #9ca3af;
}

body.light-mode .override-source code,
body.light-mode .override-header code {
  background: rgba(0, 0, 0, 0.05);
  color: #6b7280;
}

/* Override header snippet */
.override-header {
  margin-top: 6px;
}

.override-header code {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

/* ========================================================================
   VENDOR-SPECIFIC STYLES
   ======================================================================== */

/* Detected Vendors Container */
.detected-vendors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* Vendor Badges */
.vendor-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.vendor-badge:hover {
  transform: translateY(-1px);
}

/* Google Workspace */
.vendor-badge.vendor-google {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(52, 168, 83, 0.1));
  color: #4285f4;
  border: 1px solid rgba(66, 133, 244, 0.3);
}

.score-card.vendor-google {
  border-left: 3px solid #4285f4;
}

/* Microsoft 365 / Defender */
.vendor-badge.vendor-microsoft {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.15), rgba(0, 120, 212, 0.08));
  color: #0078d4;
  border: 1px solid rgba(0, 120, 212, 0.3);
}

.score-card.vendor-microsoft {
  border-left: 3px solid #0078d4;
}

/* Check Point Harmony */
.vendor-badge.vendor-checkpoint {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(233, 30, 99, 0.08));
  color: #e91e63;
  border: 1px solid rgba(233, 30, 99, 0.3);
}

.score-card.vendor-checkpoint {
  border-left: 3px solid #e91e63;
}

/* Check Point Details styling */
.checkpoint-raw-header {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  word-break: break-all;
  opacity: 0.85;
  margin-bottom: 8px;
}

.checkpoint-parsed {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.checkpoint-detail {
  font-size: 12px;
}

.checkpoint-detail strong {
  color: #e91e63;
  font-weight: 600;
}

body.light-mode .checkpoint-detail strong {
  color: #c2185b;
}

/* Proofpoint */
.vendor-badge.vendor-proofpoint {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.15), rgba(255, 87, 34, 0.08));
  color: #ff5722;
  border: 1px solid rgba(255, 87, 34, 0.3);
}

.score-card.vendor-proofpoint {
  border-left: 3px solid #ff5722;
}

/* Mimecast */
.vendor-badge.vendor-mimecast {
  background: linear-gradient(135deg, rgba(0, 150, 136, 0.15), rgba(0, 150, 136, 0.08));
  color: #009688;
  border: 1px solid rgba(0, 150, 136, 0.3);
}

.score-card.vendor-mimecast {
  border-left: 3px solid #009688;
}

/* Barracuda */
.vendor-badge.vendor-barracuda {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.08));
  color: #2196f3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.score-card.vendor-barracuda {
  border-left: 3px solid #2196f3;
}

/* Cisco IronPort */
.vendor-badge.vendor-cisco {
  background: linear-gradient(135deg, rgba(5, 125, 182, 0.15), rgba(5, 125, 182, 0.08));
  color: #057db6;
  border: 1px solid rgba(5, 125, 182, 0.3);
}

.score-card.vendor-cisco {
  border-left: 3px solid #057db6;
}

/* Abnormal Security */
.vendor-badge.vendor-abnormal {
  background: linear-gradient(135deg, rgba(103, 58, 183, 0.15), rgba(103, 58, 183, 0.08));
  color: #673ab7;
  border: 1px solid rgba(103, 58, 183, 0.3);
}

.score-card.vendor-abnormal {
  border-left: 3px solid #673ab7;
}

/* Wide score card for detailed info */
.score-card.score-card-wide {
  grid-column: 1 / -1;
}

/* GUID info styling for Proofpoint tracking */
.guid-info {
  padding: 8px 0;
}

.guid-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 12px;
}

.guid-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  min-width: 80px;
}

.guid-value {
  color: #ff5722;
  word-break: break-all;
}

body.light-mode .guid-label {
  color: rgba(0, 0, 0, 0.6);
}

body.light-mode .guid-value {
  color: #e64a19;
}

/* Light mode vendor badges */
body.light-mode .vendor-badge.vendor-google {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.12), rgba(52, 168, 83, 0.08));
}

body.light-mode .vendor-badge.vendor-microsoft {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.12), rgba(0, 120, 212, 0.06));
}

body.light-mode .vendor-badge.vendor-checkpoint {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.12), rgba(233, 30, 99, 0.06));
}

body.light-mode .vendor-badge.vendor-proofpoint {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.12), rgba(255, 87, 34, 0.06));
}

body.light-mode .vendor-badge.vendor-mimecast {
  background: linear-gradient(135deg, rgba(0, 150, 136, 0.12), rgba(0, 150, 136, 0.06));
}

body.light-mode .vendor-badge.vendor-barracuda {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.12), rgba(33, 150, 243, 0.06));
}

body.light-mode .vendor-badge.vendor-cisco {
  background: linear-gradient(135deg, rgba(5, 125, 182, 0.12), rgba(5, 125, 182, 0.06));
}

body.light-mode .vendor-badge.vendor-abnormal {
  background: linear-gradient(135deg, rgba(103, 58, 183, 0.12), rgba(103, 58, 183, 0.06));
}

/* ========================================================================
   JOURNEY TABLE STYLES
   ======================================================================== */

.journey-summary {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 12px;
  flex-wrap: wrap;
}

body.dark-mode .journey-summary {
  background: rgba(38, 196, 255, 0.08);
  border: 1px solid rgba(38, 196, 255, 0.2);
}

body.light-mode .journey-summary {
  background: rgba(0, 84, 255, 0.08);
  border: 1px solid rgba(0, 84, 255, 0.2);
}

.summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

body.dark-mode .stat-value {
  color: #26c4ff;
}

body.light-mode .stat-value {
  color: #0054ff;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--clr-text-muted);
}

body.light-mode .stat-label {
  color: #666;
}

.journey-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.journey-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid;
}

body.dark-mode .journey-table thead th {
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.light-mode .journey-table thead th {
  background: rgba(0, 0, 0, 0.03);
  color: #666;
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.journey-table tbody td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid;
}

body.dark-mode .journey-table tbody td {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.light-mode .journey-table tbody td {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.journey-table tbody tr:hover td {
  transition: background 0.2s ease;
}

body.dark-mode .journey-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

body.light-mode .journey-table tbody tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

/* Row highlighting for origin and destination */
.journey-table tbody tr.row-origin td {
  border-left: 3px solid #22c55e;
}

.journey-table tbody tr.row-destination td {
  border-left: 3px solid #ec4899;
}

/* Hop badge */
.hop-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
}

body.dark-mode .hop-badge {
  background: linear-gradient(135deg, #26c4ff, #0054ff);
  color: #fff;
}

body.light-mode .hop-badge {
  background: linear-gradient(135deg, #0054ff, #0040cc);
  color: #fff;
}

.hop-badge.hop-origin {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.hop-badge.hop-dest {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

/* Server info in table */
.server-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.server-name {
  word-break: break-all;
  line-height: 1.4;
}

body.light-mode .server-name {
  color: #333;
}

.server-location {
  font-size: 11px;
  color: #9ca3af;
}

body.light-mode .server-location {
  color: #666;
}

.server-asn {
  font-size: 10px;
  color: #6b7280;
  font-style: italic;
}

body.light-mode .server-asn {
  color: #888;
}

/* Delay badges */
.delay-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.delay-badge.delay-fast {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.delay-badge.delay-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.delay-badge.delay-slow {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.delay-badge.delay-origin {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  font-style: italic;
}

.delay-badge.delay-warning {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

/* Internal network badge */
.internal-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border-radius: 3px;
  vertical-align: middle;
}

body.light-mode .internal-badge {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
}

/* Origin badge for message source */
.origin-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-radius: 3px;
  vertical-align: middle;
}

body.light-mode .origin-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

/* Row styling for origin hop */
.journey-table tr.row-origin-hop td.col-from .server-name {
  color: #60a5fa;
}

body.light-mode .journey-table tr.row-origin-hop td.col-from .server-name {
  color: #2563eb;
}

/* Protocol indicators */
.protocol-secure {
  color: #22c55e;
  font-weight: 500;
}

.protocol-plain {
  color: #9ca3af;
}

body.light-mode .protocol-plain {
  color: #666;
}

/* Table column widths */
.col-hop {
  width: 60px;
  text-align: center;
}

.col-from {
  min-width: 200px;
}

.col-to {
  min-width: 180px;
}

.col-time {
  width: 140px;
  white-space: nowrap;
}

.col-delay {
  width: 90px;
  text-align: center;
}

.col-protocol {
  width: 140px;
  white-space: nowrap;
}

/* ========================================================================
   ERROR DISPLAY STYLES
   ======================================================================== */

.error-display {
  text-align: center;
  padding: 60px 20px;
}

.error-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.error-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

body.dark-mode .error-title {
  color: #ff6b6b;
}

body.light-mode .error-title {
  color: #dc2626;
}

.error-message {
  font-size: 14px;
  margin-bottom: 24px;
}

body.dark-mode .error-message {
  color: #fff;
}

body.light-mode .error-message {
  color: #333;
}

/* ========================================================================
   JOURNEY TABLE RESPONSIVE
   ======================================================================== */

@media (max-width: 992px) {
  .journey-table {
    font-size: 12px;
  }

  .journey-table thead th,
  .journey-table tbody td {
    padding: 10px 12px;
  }

  .col-time {
    width: 120px;
  }

  .col-protocol {
    width: 120px;
  }
}

@media (max-width: 768px) {
  .journey-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .journey-summary {
    flex-direction: row;
    justify-content: space-around;
    padding: 12px 16px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 10px;
  }

  .col-from,
  .col-to {
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .journey-table thead th,
  .journey-table tbody td {
    padding: 8px 10px;
    font-size: 11px;
  }

  .hop-badge {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .delay-badge {
    padding: 3px 8px;
    font-size: 10px;
  }

  .server-location,
  .server-asn {
    font-size: 10px;
  }
}
