/* ===== GLOBAL ===== */
* {
  box-sizing: border-box;
}

:root {
  --blue: #3b6ff5;
  --dark-blue: #1e3a8a;
  --light-bg: #f4f7fb;
  --dark-bg: #111827;
  --dark-card: #1f2937;
  --dark-input: #374151;
  --text: #111827;
  --muted: #374151;
  --light-blue: #93c5fd;
  --white: #ffffff;
  --shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

#home,
#about,
#features {
  scroll-margin-top: 100px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--light-bg);
  color: var(--text);
}

body.dark-mode {
  background: var(--dark-bg);
  color: var(--white);
}

/* ===== NORMAL NAVBAR ===== */
.navbar {
  height: 65px;
  background: var(--blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
}

.logo {
  color: var(--white);
  font-size: 28px;
  font-weight: bold;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 17px;
}

.nav-links a:hover {
  text-decoration: underline;
}

.theme-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}

/* Dashboard hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid white;
  color: white;
  font-size: 28px;
  cursor: pointer;
  border-radius: 8px;
  padding: 5px 12px;
}

/* ===== HOME NAVBAR ===== */
.home-navbar {
  height: 90px;
  background: var(--blue);
  display: flex;
  align-items: center;
  padding: 0 90px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.home-logo {
  color: white;
  font-size: 30px;
  font-weight: bold;
  white-space: nowrap;
}

.home-nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 45px;
}

.home-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.home-nav-center a,
.home-nav-right a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}

.home-nav-center a:hover,
.home-nav-right a:hover {
  text-decoration: underline;
}

.login-nav-btn {
  padding: 10px 22px;
  border: 2px solid white;
  border-radius: 25px;
}

.login-nav-btn:hover {
  background: white;
  color: var(--blue);
  text-decoration: none;
}

/* ===== LOGIN / REGISTER PAGE ===== */
.fb-login-page {
  min-height: calc(100vh - 65px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 90px;
  padding: 50px 80px;
  background: var(--light-bg);
}

.login-brand {
  width: 720px;
  height: 530px;
  margin-left: -120px;
  padding: 45px 60px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.75)),
    url("/images/login.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.logo-badge {
  width: 90px;
  height: 90px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 42px;
  margin-bottom: 25px;
}

.login-brand h1 {
  font-size: 52px;
  color: var(--light-blue) !important;
  margin: 0 0 20px;
}

.login-brand p {
  font-size: 22px;
  line-height: 1.5;
  color: white !important;
  margin: 0;
}

.login-box,
.auth-card,
.container {
  width: 430px;
  background: var(--white);
  padding: 35px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-align: center;
}

.login-box h2,
.auth-card h1,
.container h1 {
  color: var(--text);
  margin-bottom: 25px;
}

.login-box input,
.auth-card input,
.container input {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #ccd0d5;
  border-radius: 8px;
  font-size: 16px;
}

.login-box button[type="submit"],
.auth-card button[type="submit"],
.container button {
  width: 100%;
  padding: 15px;
  background: var(--dark-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
}

.login-box button[type="submit"]:hover,
.auth-card button[type="submit"]:hover,
.container button:hover {
  background: var(--blue);
}

.create-account-btn {
  display: inline-block;
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  border: 2px solid var(--dark-blue);
  border-radius: 8px;
  color: var(--dark-blue);
  text-decoration: none;
  font-weight: bold;
}

.create-account-btn:hover {
  background: var(--dark-blue);
  color: var(--white);
}

/* ===== SOCIAL LOGIN ===== */
.divider {
  display: flex;
  align-items: center;
  margin: 25px 0 18px;
  color: #6b7280;
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d1d5db;
}

.divider span {
  padding: 0 12px;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f3f4f6;
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  border: 1px solid #e5e7eb;
  transition: 0.2s;
}

.social-btn:hover {
  transform: translateY(-3px);
}

.social-btn.google {
  color: #db4437;
}

.social-btn.facebook {
  color: #1877f2;
}

.social-btn.apple {
  color: var(--text);
}

/* ===== HOME HERO VIDEO ===== */
.hero-home {
  min-height: 680px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, #1e3a8a, #3b6ff5);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.65);
  z-index: 2;
}

.hero-text {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  color: white;
}

.hero-text h1 {
  font-size: 58px;
  font-weight: 800;
  color: #93c5fd;
  margin-bottom: 28px;
}

.hero-text p {
  max-width: 1050px;
  margin: 0 auto 45px;
  font-size: 23px;
  line-height: 1.6;
  color: white;
}

.hero-main-btn {
  display: inline-block;
  background: white;
  color: #1e3a8a;
  padding: 17px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: 0.3s;
}

.hero-main-btn:hover {
  background: #e5e7eb;
  transform: translateY(-3px);
}

/* ===== HOME ABOUT / FEATURES ===== */
.home-about-section,
.home-features-section {
  padding: 80px 12%;
  text-align: center;
}

.home-about-section {
  background: var(--light-bg);
}

.home-features-section {
  background: var(--white);
}

.home-about-section h2,
.home-features-section h2 {
  font-size: 36px;
  color: var(--dark-blue);
  margin-bottom: 25px;
}

.home-about-section p {
  max-width: 950px;
  margin: 0 auto 18px;
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.home-feature-box {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.home-feature-box h3 {
  color: var(--dark-blue);
  margin-bottom: 12px;
  font-size: 22px;
}

.home-feature-box p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.home-footer {
  background: var(--blue);
  color: white;
  text-align: center;
  padding: 22px 20px;
  font-size: 16px;
}

.home-footer p {
  margin: 0;
  color: white;
}

/* ===== DASHBOARD TABS ===== */
.vt-page {
  min-height: calc(100vh - 65px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
}

.vt-card {
  width: 850px;
  max-width: 95%;
  background: var(--white);
  color: var(--text);
  padding: 35px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.vt-tabs {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #d1d5db;
  margin-bottom: 35px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 15px 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  color: var(--dark-blue);
}

.tab-btn.active {
  color: var(--text);
  border-bottom: 4px solid var(--dark-blue);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h1 {
  color: var(--dark-blue);
}

.tab-content p {
  color: var(--muted);
}

.tab-content input[type="file"],
.tab-content input[type="url"],
.tab-content input[type="text"] {
  width: 80%;
  padding: 13px;
  margin: 18px 0;
  border-radius: 6px;
  border: 1px solid var(--dark-blue);
}

.tab-content button[type="submit"] {
  width: 80%;
  padding: 13px;
  background: var(--dark-blue);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.tab-content button[type="submit"]:hover {
  background: var(--blue);
}

/* ===== RESULT / HISTORY ===== */
.result-container,
.history-container {
  width: 90%;
  max-width: 1150px;
  margin: 50px auto;
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card {
  background: #f9fafb;
  padding: 18px;
  margin: 18px 0;
  border-radius: 10px;
  border-left: 5px solid var(--dark-blue);
}

.hash {
  background: #e5e7eb;
  padding: 10px;
  border-radius: 6px;
  word-break: break-all;
  font-family: monospace;
}

/* ===== TABLE ===== */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: var(--dark-blue);
  color: white;
  padding: 12px;
}

td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.url-history-table {
  width: 100%;
  table-layout: fixed;
}

.no-col {
  width: 60px;
}

.url-col {
  width: 35%;
}

.domain-col {
  width: 22%;
}

.status-col {
  width: 16%;
}

.risk-col {
  width: 14%;
}

.date-col {
  width: 18%;
}

.url-cell,
.domain-cell {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ===== HISTORY TABS ===== */
.history-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
}

.history-tab-btn {
  padding: 12px 20px;
  background: #e5e7eb;
  color: var(--dark-blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.history-tab-btn.active {
  background: var(--dark-blue);
  color: white;
}

.history-tab-content {
  display: none;
}

.history-tab-content.active {
  display: block;
}

/* ===== PAGINATION ===== */
.pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  gap: 20px;
  flex-wrap: wrap;
}

.pagination-info {
  font-size: 15px;
  color: var(--text);
}

.pagination-buttons {
  display: flex;
}

.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  background: white;
  color: var(--dark-blue);
  border: 1px solid #d1d5db;
  cursor: pointer;
  font-size: 15px;
}

.page-btn:hover {
  background: #e5e7eb;
}

.page-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== BADGES / MESSAGES / BUTTONS ===== */
.badge,
.risk-low,
.risk-medium,
.risk-high {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
}

.badge.low,
.risk-low,
.success {
  background: #dcfce7;
  color: #166534;
}

.badge.medium,
.risk-medium {
  background: #fef3c7;
  color: #111827;
}

.badge.high,
.risk-high,
.error {
  background: #fee2e2;
  color: #991b1b;
}

.error,
.success {
  padding: 10px;
  border-radius: 6px;
}

.btn {
  display: inline-block;
  padding: 10px 15px;
  margin: 5px;
  background: var(--dark-blue);
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

.btn.danger {
  background: #991b1b;
}

/* ===== DARK MODE ===== */
body.dark-mode .fb-login-page,
body.dark-mode .home-about-section,
body.dark-mode .vt-page {
  background: var(--dark-bg);
}

body.dark-mode .login-box,
body.dark-mode .auth-card,
body.dark-mode .container,
body.dark-mode .vt-card,
body.dark-mode .result-container,
body.dark-mode .history-container {
  background: var(--dark-card);
  color: white;
}

body.dark-mode .home-feature-box,
body.dark-mode .card {
  background: var(--dark-input);
}

body.dark-mode .home-features-section {
  background: #0f172a;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode .login-box h2,
body.dark-mode .tab-content h1,
body.dark-mode .home-about-section h2,
body.dark-mode .home-features-section h2,
body.dark-mode .home-feature-box h3 {
  color: var(--light-blue);
}

body.dark-mode p,
body.dark-mode .tab-content p,
body.dark-mode .home-about-section p,
body.dark-mode .home-feature-box p {
  color: #e5e7eb;
}

body.dark-mode input,
body.dark-mode .tab-content input[type="file"],
body.dark-mode .tab-content input[type="url"],
body.dark-mode .tab-content input[type="text"] {
  background: var(--dark-input);
  color: white;
  border: 1px solid #6b7280;
}

body.dark-mode input::placeholder {
  color: #d1d5db;
}

body.dark-mode .hash {
  background: var(--dark-bg);
  color: white;
}

body.dark-mode td {
  border-bottom: 1px solid #6b7280;
}

body.dark-mode .history-tab-btn,
body.dark-mode .page-btn,
body.dark-mode .social-btn {
  background: var(--dark-input);
  color: var(--light-blue);
  border-color: #6b7280;
}

body.dark-mode .history-tab-btn.active,
body.dark-mode .page-btn.active {
  background: var(--blue);
  color: white;
}

body.dark-mode .create-account-btn {
  color: var(--light-blue);
  border-color: var(--light-blue);
}

body.dark-mode .create-account-btn:hover {
  background: var(--light-blue);
  color: var(--dark-bg);
}

body.dark-mode .tab-btn,
body.dark-mode .tab-btn.active {
  color: white !important;
}

body.dark-mode .tab-btn.active {
  border-bottom: 4px solid white !important;
}

body.dark-mode .tab-btn:hover {
  color: var(--light-blue) !important;
}

body.dark-mode .badge.low,
body.dark-mode .risk-low {
  color: #166534 !important;
}

body.dark-mode .badge.medium,
body.dark-mode .risk-medium {
  color: #111827 !important;
}

body.dark-mode .badge.high,
body.dark-mode .risk-high {
  color: #991b1b !important;
}

/* ===== TABLET VIEW ===== */
@media (max-width: 1000px) {
  .home-navbar {
    padding: 0 35px;
  }

  .home-logo {
    font-size: 26px;
  }

  .home-nav-center {
    position: static;
    transform: none;
    margin-left: auto;
    margin-right: 25px;
    gap: 25px;
  }

  .home-nav-center a,
  .home-nav-right a {
    font-size: 16px;
  }

  .navbar {
    padding: 0 35px;
  }

  .logo {
    font-size: 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 15px;
  }

  .hero-text h1 {
    font-size: 46px;
  }

  .hero-text p {
    font-size: 20px;
  }

  .home-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== PHONE VIEW ===== */
@media (max-width: 700px) {
  /* Home navbar stays visible without hamburger */
  .home-navbar {
    height: auto;
    flex-direction: column;
    justify-content: center;
    padding: 15px 20px;
    gap: 14px;
  }

  .home-logo {
    font-size: 24px;
    text-align: center;
  }

  .home-nav-center {
    position: static;
    transform: none;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .home-nav-right {
    margin: 0;
    justify-content: center;
    gap: 15px;
  }

  .home-nav-center a,
  .home-nav-right a {
    font-size: 15px;
  }

  .login-nav-btn {
    padding: 8px 18px;
  }

  /* Dashboard navbar becomes right hamburger */
  #dashboardNavbar {
    height: 65px !important;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px !important;
  }

  #dashboardNavbar .nav-toggle {
    display: block;
    margin-left: auto;
  }

  #dashboardNavbar .nav-links {
    display: none !important;
    position: absolute;
    top: 65px;
    right: 15px;
    width: 230px;
    background: var(--blue);
    border-radius: 12px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 999;
  }

  #dashboardNavbar.active .nav-links {
    display: flex !important;
  }

  #dashboardNavbar .nav-links a {
    font-size: 16px;
  }

  .theme-btn {
    font-size: 22px;
  }

  .hero-home {
    min-height: 620px;
    padding: 160px 18px 70px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 17px;
  }

  .hero-main-btn {
    padding: 14px 25px;
    font-size: 16px;
  }

  .fb-login-page {
    flex-direction: column;
    gap: 35px;
    padding: 40px 20px;
    text-align: center;
  }

  .login-brand {
    width: 100%;
    height: auto;
    margin-left: 0;
    text-align: center;
  }

  .logo-badge {
    margin: 0 auto 20px;
  }

  .login-brand h1 {
    font-size: 40px;
  }

  .login-brand p {
    font-size: 18px;
  }

  .login-box,
  .auth-card,
  .container {
    width: 95%;
  }

  .home-about-section,
  .home-features-section {
    padding: 60px 25px;
  }

  .home-about-section h2,
  .home-features-section h2 {
    font-size: 30px;
  }

  .home-about-section p {
    font-size: 17px;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .pagination-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .pagination-buttons {
    flex-wrap: wrap;
  }

  .url-history-table {
    min-width: 850px;
  }

  .home-footer {
    padding: 18px 15px;
    font-size: 14px;
  }
}

/* ===== VERY SMALL PHONE ===== */
@media (max-width: 400px) {
  .home-logo,
  .logo {
    font-size: 22px;
  }

  .home-nav-center {
    gap: 12px;
  }

  .home-nav-center a,
  .home-nav-right a {
    font-size: 14px;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .login-nav-btn {
    padding: 7px 15px;
  }

  .home-footer {
    font-size: 13px;
  }
}
/* ===== ADVANCED SEARCH RESULT PAGE ===== */
.advanced-result-page {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
}

.advanced-result-header {
  text-align: center;
  margin-bottom: 30px;
}

.advanced-result-header h1 {
  color: var(--dark-blue);
  font-size: 38px;
  margin-bottom: 10px;
}

.advanced-result-header p {
  color: var(--muted);
  font-size: 18px;
}

.result-overview-card {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
  border-left: 6px solid var(--dark-blue);
}

.result-overview-card h2 {
  margin: 8px 0 0;
  color: var(--dark-blue);
  word-break: break-word;
}

.result-label {
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}

.summary-box {
  background: white;
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.summary-box h3 {
  color: var(--dark-blue);
  font-size: 28px;
  margin: 0 0 8px;
}

.summary-box p {
  color: var(--muted);
  margin: 0;
}

.advanced-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.advanced-card h2 {
  color: var(--dark-blue);
  margin-bottom: 25px;
}

.advanced-result-item {
  background: #f9fafb;
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 25px;
  border-left: 5px solid var(--dark-blue);
}

.result-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 20px;
}

.result-item-header h3 {
  color: var(--dark-blue);
  margin: 0;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.details-grid p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 16px;
}

.break-text {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.hash-section {
  margin-top: 25px;
}

.hash-section h4 {
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.hash-row {
  display: grid;
  grid-template-columns: 90px 1fr 80px;
  align-items: center;
  gap: 12px;
  background: #e5e7eb;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.hash-row span {
  font-weight: bold;
  color: var(--dark-blue);
}

.hash-row code {
  word-break: break-all;
  font-size: 14px;
}

.hash-row button {
  background: var(--dark-blue);
  color: white;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.hash-row button:hover {
  background: var(--blue);
}

.empty-result {
  background: #f9fafb;
  padding: 30px;
  border-radius: 14px;
  text-align: center;
}

.empty-result h3 {
  color: var(--dark-blue);
}

.result-actions {
  margin-top: 25px;
  text-align: center;
}

/* Dark mode */
body.dark-mode .advanced-result-header h1,
body.dark-mode .advanced-card h2,
body.dark-mode .result-overview-card h2,
body.dark-mode .summary-box h3,
body.dark-mode .result-item-header h3,
body.dark-mode .hash-section h4,
body.dark-mode .empty-result h3 {
  color: var(--light-blue);
}

body.dark-mode .advanced-result-header p,
body.dark-mode .summary-box p,
body.dark-mode .details-grid p {
  color: #e5e7eb;
}

body.dark-mode .result-overview-card,
body.dark-mode .summary-box,
body.dark-mode .advanced-card {
  background: var(--dark-card);
  color: white;
}

body.dark-mode .advanced-result-item,
body.dark-mode .empty-result {
  background: var(--dark-input);
}

body.dark-mode .hash-row {
  background: var(--dark-bg);
}

body.dark-mode .hash-row span {
  color: var(--light-blue);
}

body.dark-mode .hash-row code {
  color: white;
}

/* Mobile */
@media (max-width: 768px) {
  .advanced-result-page {
    width: 95%;
    margin: 30px auto;
  }

  .advanced-result-header h1 {
    font-size: 30px;
  }

  .result-overview-card,
  .summary-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .result-item-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hash-row {
    grid-template-columns: 1fr;
  }

  .hash-row button {
    width: 100%;
  }
}
/* ===== WHOIS INSIDE SEARCH RESULT ===== */
.advanced-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 25px 0;
}

.advanced-card h2 {
  color: var(--dark-blue);
  margin-bottom: 25px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.result-label {
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
}

.details-grid p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 16px;
}

.break-text {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Dark mode */
body.dark-mode .advanced-card {
  background: var(--dark-card);
  color: white;
}

body.dark-mode .advanced-card h2 {
  color: var(--light-blue);
}

body.dark-mode .details-grid p {
  color: #e5e7eb;
}

/* Mobile */
@media (max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ERROR MESSAGE FIX ===== */
.error {
  background: #fee2e2;
  color: #dc2626 !important;
  border: 1px solid #fca5a5;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 18px;
}

body.dark-mode .error {
  background: #fee2e2;
  color: #dc2626 !important;
  border: 1px solid #fca5a5;
}
/* ===== SUCCESS MESSAGE FIX ===== */
.success {
  background: #dcfce7;
  color: #15803d !important;
  border: 1px solid #86efac;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 18px;
}

body.dark-mode .success {
  background: #dcfce7;
  color: #15803d !important;
  border: 1px solid #86efac;
}
/* ===== WHOIS EXTRA INFORMATION ===== */
.whois-info-card {
  padding: 0;
  overflow: hidden;
}

.whois-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3f4f6;
  padding: 18px 24px;
  border-bottom: 1px solid #d1d5db;
}

.whois-section-title h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
}

.whois-icon {
  color: #fb923c;
  font-size: 24px;
  font-weight: bold;
}

.whois-info-table {
  padding: 0 24px 12px;
}

.whois-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.whois-row span {
  color: #6b7280;
  font-weight: 500;
}

.whois-row p {
  margin: 0;
  color: #111827;
  word-break: break-word;
}

body.dark-mode .whois-section-title {
  background: #111827;
  border-bottom: 1px solid #334155;
}

body.dark-mode .whois-section-title h2 {
  color: var(--light-blue);
}

body.dark-mode .whois-row {
  border-bottom: 1px solid #334155;
}

body.dark-mode .whois-row span {
  color: #9ca3af;
}

body.dark-mode .whois-row p {
  color: #e5e7eb;
}

@media (max-width: 700px) {
  .whois-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ===== FORGOT PASSWORD LINK ===== */
.forgot-password-wrap {
  text-align: right;
  margin-top: -5px;
  margin-bottom: 15px;
}

.forgot-password-link {
  color: var(--light-blue);
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

body.dark-mode .forgot-password-link {
  color: var(--light-blue);
}

/* ===== ADMIN DASHBOARD EXTRA FEATURES ===== */
.admin-page {
  width: 92%;
  max-width: 1300px;
  margin: 40px auto;
}

.admin-header {
  text-align: center;
  margin-bottom: 30px;
}

.admin-header h1 {
  color: var(--dark-blue);
  font-size: 38px;
  margin-bottom: 10px;
}

.admin-header p {
  color: var(--muted);
  font-size: 17px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.admin-summary-card {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  border-left: 6px solid var(--dark-blue);
}

.admin-summary-card h2 {
  color: var(--dark-blue);
  font-size: 34px;
  margin: 0 0 8px;
}

.admin-summary-card p {
  color: var(--muted);
  margin: 0;
  font-weight: bold;
}

.danger-card {
  border-left-color: #dc2626;
}

.danger-card h2 {
  color: #dc2626;
}

.admin-card {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.admin-card h2 {
  color: var(--dark-blue);
  margin-bottom: 20px;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-search-form {
  display: flex;
  gap: 10px;
}

.admin-search-form input {
  padding: 11px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  min-width: 260px;
}

.admin-search-form button,
.small-btn {
  background: var(--dark-blue);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.admin-search-form button:hover,
.small-btn:hover {
  background: var(--blue);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f3f4f6;
  color: var(--dark-blue);
  font-weight: bold;
}

.admin-table td {
  color: var(--text);
}

.admin-table small {
  color: #6b7280;
}

.admin-table select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  margin-bottom: 8px;
}

.delete-btn {
  background: #dc2626;
  color: white;
  border: none;
  padding: 9px 13px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.delete-btn:hover {
  background: #b91c1c;
}

.admin-role-badge,
.user-role-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
}

.admin-role-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.user-role-badge {
  background: #dcfce7;
  color: #166534;
}

body.dark-mode .admin-header h1,
body.dark-mode .admin-summary-card h2,
body.dark-mode .admin-card h2 {
  color: var(--light-blue);
}

body.dark-mode .danger-card h2 {
  color: #f87171;
}

body.dark-mode .admin-header p,
body.dark-mode .admin-summary-card p,
body.dark-mode .admin-table td,
body.dark-mode .admin-table small {
  color: #e5e7eb;
}

body.dark-mode .admin-summary-card,
body.dark-mode .admin-card {
  background: var(--dark-card);
}

body.dark-mode .admin-table th {
  background: var(--dark-input);
  color: var(--light-blue);
}

body.dark-mode .admin-table th,
body.dark-mode .admin-table td {
  border-bottom: 1px solid #334155;
}

body.dark-mode .admin-search-form input,
body.dark-mode .admin-table select {
  background: var(--dark-input);
  color: white;
  border: 1px solid #475569;
}

@media (max-width: 900px) {
  .admin-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search-form {
    width: 100%;
  }

  .admin-search-form input {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-header h1 {
    font-size: 30px;
  }

  .admin-search-form {
    flex-direction: column;
  }
}

/* ===== ADMIN CONTENT MANAGER ===== */
.admin-content-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.admin-content-form input,
.admin-content-form select,
.admin-content-form textarea {
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}

.admin-content-form button {
  background: var(--dark-blue);
  color: white;
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.admin-content-form button:hover {
  background: var(--blue);
}

.admin-small-text {
  color: var(--muted);
  margin-bottom: 18px;
}

.admin-content-thumb {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== PUBLIC ADMIN CONTENT DISPLAY ===== */
.admin-public-content-area {
  width: 90%;
  max-width: 1100px;
  margin: 25px auto 0;
  display: grid;
  gap: 18px;
}

.admin-public-content-card {
  background: white;
  border-left: 6px solid var(--dark-blue);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}

.admin-public-content-card h3 {
  color: var(--dark-blue);
  margin: 12px 0 8px;
}

.admin-public-content-card p {
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.admin-public-content-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

body.dark-mode .admin-content-form input,
body.dark-mode .admin-content-form select,
body.dark-mode .admin-content-form textarea {
  background: var(--dark-input);
  color: white;
  border: 1px solid #475569;
}

body.dark-mode .admin-public-content-card {
  background: var(--dark-card);
}

body.dark-mode .admin-public-content-card h3 {
  color: var(--light-blue);
}

body.dark-mode .admin-public-content-card p,
body.dark-mode .admin-small-text {
  color: #e5e7eb;
}

@media (max-width: 600px) {
  .admin-public-content-area {
    width: 95%;
  }

  .admin-public-content-image {
    max-height: 180px;
  }
}

/* ===== OTP FORGOT PASSWORD ===== */
.resend-otp-form {
  margin-top: 12px;
}

.resend-otp-btn {
  background: transparent !important;
  color: var(--dark-blue) !important;
  border: 1px solid var(--dark-blue) !important;
}

.resend-otp-btn:hover {
  background: var(--dark-blue) !important;
  color: white !important;
}

body.dark-mode .resend-otp-btn {
  color: var(--light-blue) !important;
  border: 1px solid var(--light-blue) !important;
}

body.dark-mode .resend-otp-btn:hover {
  background: var(--light-blue) !important;
  color: #111827 !important;
}

/* ===== USER PROFILE PAGE ===== */
.profile-page {
  width: 90%;
  max-width: 1150px;
  margin: 40px auto;
}

.profile-header-card {
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
}

.profile-picture-box img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--dark-blue);
}

.profile-default-icon {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--dark-blue);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 52px;
  font-weight: bold;
  border: 5px solid var(--light-blue);
}

.profile-info h1 {
  color: var(--dark-blue);
  margin-bottom: 8px;
}

.profile-info p {
  color: var(--muted);
  margin-bottom: 12px;
}

.profile-message {
  max-width: 700px;
  margin: 0 auto 20px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.profile-card {
  background: white;
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.profile-card-full {
  grid-column: span 2;
}

.profile-card h2 {
  color: var(--dark-blue);
  margin-bottom: 20px;
}

.profile-card form {
  display: grid;
  gap: 12px;
}

.profile-card label {
  color: var(--text);
  font-weight: bold;
}

.profile-card input {
  padding: 13px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 15px;
}

.profile-card input:disabled {
  background: #e5e7eb;
  cursor: not-allowed;
}

.profile-card small {
  color: var(--muted);
  margin-bottom: 10px;
}

.profile-card button {
  background: var(--dark-blue);
  color: white;
  padding: 13px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
}

.profile-card button:hover {
  background: var(--blue);
}

.profile-detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #e5e7eb;
}

.profile-detail-row span {
  color: #6b7280;
  font-weight: bold;
}

.profile-detail-row p {
  margin: 0;
  color: var(--text);
}

body.dark-mode .profile-header-card,
body.dark-mode .profile-card {
  background: var(--dark-card);
}

body.dark-mode .profile-info h1,
body.dark-mode .profile-card h2 {
  color: var(--light-blue);
}

body.dark-mode .profile-info p,
body.dark-mode .profile-card label,
body.dark-mode .profile-detail-row p,
body.dark-mode .profile-card small {
  color: #e5e7eb;
}

body.dark-mode .profile-card input {
  background: var(--dark-input);
  color: white;
  border: 1px solid #475569;
}

body.dark-mode .profile-card input:disabled {
  background: #334155;
  color: #cbd5e1;
}

body.dark-mode .profile-detail-row {
  border-bottom: 1px solid #334155;
}

body.dark-mode .profile-detail-row span {
  color: #9ca3af;
}

@media (max-width: 800px) {
  .profile-header-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-card-full {
    grid-column: span 1;
  }

  .profile-detail-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* ===== FORGOT PASSWORD RECOVERY PAGE ===== */
.auth-recovery-page {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  background: #020617;
  color: white;
  overflow-x: hidden;
  position: relative;
}

.recovery-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 35%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.18), transparent 35%),
    #020617;
}

.recovery-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 45px 45px;
  opacity: 0.5;
}

.recovery-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}

.recovery-glow-one {
  top: 8%;
  left: 10%;
  background: #2563eb;
}

.recovery-glow-two {
  right: 8%;
  bottom: 10%;
  background: #06b6d4;
}

.recovery-scan-line {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(59, 130, 246, 0.18),
    transparent
  );
  animation: recoveryScan 6s linear infinite;
}

@keyframes recoveryScan {
  from {
    transform: translateY(-120px);
  }

  to {
    transform: translateY(120vh);
  }
}

.recovery-binary {
  position: absolute;
  color: rgba(147, 197, 253, 0.12);
  font-size: 15px;
  letter-spacing: 4px;
  white-space: nowrap;
}

.recovery-binary-one {
  top: 18%;
  left: 5%;
}

.recovery-binary-two {
  bottom: 18%;
  right: 5%;
}

.recovery-shell {
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 35px 18px;
}

.recovery-card {
  width: 100%;
  max-width: 520px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.recovery-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 25px;
}

.recovery-back:hover {
  color: #bfdbfe;
}

.recovery-icon {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
  border-radius: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.recovery-eyebrow {
  color: #93c5fd;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.recovery-eyebrow i {
  margin-right: 6px;
}

.recovery-card h1 {
  color: #dbeafe;
  font-size: 36px;
  margin-bottom: 14px;
}

.recovery-subtitle {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.recovery-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-weight: bold;
  line-height: 1.5;
}

.recovery-alert-danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.recovery-alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.recovery-input-group {
  margin-bottom: 18px;
}

.recovery-input-group label {
  display: block;
  color: #e5e7eb;
  font-weight: bold;
  margin-bottom: 9px;
}

.recovery-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 12px;
  padding: 0 15px;
}

.recovery-input-wrap i {
  color: #93c5fd;
  font-size: 18px;
}

.recovery-input-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 16px;
  padding: 16px 0;
}

.recovery-input-wrap input::placeholder {
  color: #94a3b8;
}

.recovery-primary-button {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recovery-primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.recovery-primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.recovery-button-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.recovery-primary-button.is-loading .recovery-button-default {
  display: none;
}

.recovery-primary-button.is-loading .recovery-button-loading {
  display: flex;
}

.recovery-spinner {
  width: 17px;
  height: 17px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: recoverySpin 0.8s linear infinite;
}

@keyframes recoverySpin {
  to {
    transform: rotate(360deg);
  }
}

.recovery-note {
  display: flex;
  gap: 12px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 15px;
  margin-top: 22px;
}

.recovery-note i {
  color: #93c5fd;
  margin-top: 3px;
}

.recovery-note p {
  color: #cbd5e1;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.recovery-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  color: #93c5fd;
  font-size: 14px;
  font-weight: bold;
}

.recovery-footer span {
  display: flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 600px) {
  .recovery-card {
    padding: 26px 20px;
  }

  .recovery-card h1 {
    font-size: 30px;
  }

  .recovery-footer {
    flex-direction: column;
  }

  .recovery-binary {
    display: none;
  }
}

/* ===== DATATABLE STYLE HISTORY PAGE ===== */
.history-tab-content {
  display: none;
}

.history-tab-content.active {
  display: block;
}

.datatable-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.entries-control,
.search-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: bold;
}

.entries-control select {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #475569;
  background: white;
  color: #111827;
  font-size: 15px;
}

.search-control input {
  width: 250px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #475569;
  background: white;
  color: #111827;
  font-size: 15px;
}

.datatable-style {
  width: 100%;
  border-collapse: collapse;
}

.datatable-style thead th {
  background: transparent;
  color: var(--text);
  font-weight: bold;
  padding: 15px 12px;
  text-align: left;
  border-bottom: 1px solid #475569;
  position: relative;
}

.datatable-style thead th::after {
  content: " ◆";
  color: #6b7280;
  font-size: 12px;
  margin-left: 8px;
}

.datatable-style tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #475569;
  color: var(--text);
  vertical-align: top;
}

.datatable-style tbody tr:nth-child(odd) {
  background: rgba(148, 163, 184, 0.12);
}

.datatable-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pagination-info {
  color: #111827;
  font-weight: bold;
  margin: 0;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0;
}

.pagination-numbers button {
  background: white;
  color: #111827;
  border: 1px solid #475569;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: bold;
}

.pagination-numbers button:first-child {
  border-radius: 8px 0 0 8px;
}

.pagination-numbers button:last-child {
  border-radius: 0 8px 8px 0;
}

.pagination-numbers button.active {
  background: var(--dark-blue);
  color: white;
}

.pagination-numbers button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.history-actions-under {
  margin-top: 25px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.print-btn {
  background: var(--dark-blue);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.print-btn:hover {
  background: var(--blue);
}

.history-result-link {
  display: inline-block;
  white-space: nowrap;
  padding: 7px 10px;
  font-size: 0.9rem;
}

/* Dark mode */
body.dark-mode .entries-control,
body.dark-mode .search-control,
body.dark-mode .datatable-style thead th,
body.dark-mode .datatable-style tbody td,
body.dark-mode .pagination-info {
  color: white !important;
}

body.dark-mode .entries-control select,
body.dark-mode .search-control input {
  background: #1f2937;
  color: white;
  border: 1px solid #64748b;
}

body.dark-mode .datatable-style tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .pagination-numbers button {
  background: #1f2937;
  color: white;
  border: 1px solid #475569;
}

body.dark-mode .pagination-numbers button.active {
  background: #2563eb;
  color: white;
}

/* Print */
@media print {
  .navbar,
  .history-tabs,
  .datatable-top,
  .pagination-numbers,
  .history-actions-under,
  .theme-btn,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .history-container,
  .history-card,
  .table-wrapper {
    background: white !important;
    box-shadow: none !important;
  }

  .datatable-style thead th,
  .datatable-style tbody td,
  .pagination-info {
    color: black !important;
    border-color: #999 !important;
  }
}

@media (max-width: 700px) {
  .datatable-top,
  .datatable-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .entries-control,
  .search-control {
    justify-content: space-between;
  }

  .search-control input {
    width: 100%;
  }

  .pagination-numbers {
    flex-wrap: wrap;
  }
}

/* ===== NICER HISTORY TABLE WITH LINES ===== */
.table-wrapper {
  border: 1px solid #475569;
  border-radius: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.datatable-style {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  min-width: 1100px;
}

/* Table header */
.datatable-style thead th {
  background: #e5e7eb;
  color: #111827;
  padding: 16px 14px;
  text-align: left;
  font-weight: bold;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}

/* Table body */
.datatable-style tbody td {
  padding: 16px 14px;
  color: #111827;
  border: 1px solid #cbd5e1;
  vertical-align: top;
  line-height: 1.4;
}

/* Alternate row color */
.datatable-style tbody tr:nth-child(even) {
  background: #f8fafc;
}

.datatable-style tbody tr:nth-child(odd) {
  background: #ffffff;
}

/* Hover effect */
.datatable-style tbody tr:hover {
  background: #dbeafe;
}

/* Make long hash text clean */
.datatable-style td.break-text {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Risk badge spacing */
.datatable-style .badge {
  display: inline-block;
  min-width: 55px;
  text-align: center;
}

/* ===== DARK MODE HISTORY TABLE ===== */
body.dark-mode .table-wrapper {
  background: #1e293b;
  border: 1px solid #64748b;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

body.dark-mode .datatable-style thead th {
  background: #0f172a;
  color: white !important;
  border: 1px solid #64748b;
}

body.dark-mode .datatable-style tbody td {
  color: white !important;
  border: 1px solid #64748b;
}

body.dark-mode .datatable-style tbody tr:nth-child(even) {
  background: #1e293b;
}

body.dark-mode .datatable-style tbody tr:nth-child(odd) {
  background: #334155;
}

body.dark-mode .datatable-style tbody tr:hover {
  background: #475569;
}

/* Remove diamond icon if too messy */
.datatable-style thead th::after {
  content: "";
}

/* ===== FULL RESPONSIVE LOGIN PAGE ===== */

.login-responsive-page {
  width: 100%;
  min-height: calc(100vh - 65px);
  padding: 60px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
  background: var(--light-bg);
}

/* Left image/brand box */
.login-responsive-page .login-brand {
  width: 100%;
  max-width: 760px;
  min-height: 520px;
  margin-left: 0;
  padding: 45px 60px;
}

/* Right login box */
.login-responsive-page .login-box {
  width: 100%;
  max-width: 520px;
}

/* Dark mode */
body.dark-mode .login-responsive-page {
  background: var(--dark-bg);
}

body.dark-mode .login-box {
  background: var(--dark-card);
  color: white;
}

body.dark-mode .login-box h2 {
  color: var(--light-blue);
}

body.dark-mode .login-box input {
  background: var(--dark-input);
  color: white;
  border: 1px solid #64748b;
}

body.dark-mode .login-box input::placeholder {
  color: #d1d5db;
}

/* ===== TABLET VIEW ===== */
@media (max-width: 1100px) {
  .login-responsive-page {
    gap: 35px;
    padding: 50px 25px;
  }

  .login-responsive-page .login-brand {
    max-width: 560px;
    min-height: 460px;
  }

  .login-brand h1 {
    font-size: 46px;
  }

  .login-brand p {
    font-size: 20px;
  }

  .login-responsive-page .login-box {
    max-width: 460px;
  }
}

/* ===== SMALL TABLET / LARGE PHONE ===== */
@media (max-width: 900px) {
  .login-responsive-page {
    flex-direction: column;
    padding: 40px 22px;
    gap: 30px;
  }

  .login-responsive-page .login-brand,
  .login-responsive-page .login-box {
    width: 100%;
    max-width: 620px;
  }

  .login-responsive-page .login-brand {
    min-height: 350px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .login-brand .logo-badge {
    margin: 0 auto 20px;
  }

  .login-brand h1 {
    font-size: 42px;
  }

  .login-brand p {
    font-size: 18px;
  }
}

/* ===== PHONE NAVBAR ===== */
@media (max-width: 700px) {
  .login-navbar {
    height: 65px;
    padding: 0 20px;
    position: relative;
  }

  .login-navbar .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .login-navbar .nav-links {
    display: none !important;
    position: absolute;
    top: 65px;
    right: 15px;
    width: 230px;
    background: var(--blue);
    border-radius: 12px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 999;
  }

  .login-navbar.active .nav-links {
    display: flex !important;
  }

  .login-navbar .nav-links a {
    font-size: 16px;
  }

  .login-responsive-page {
    padding: 30px 16px;
  }

  .login-responsive-page .login-brand {
    min-height: 300px;
    padding: 35px 22px;
  }

  .login-brand h1 {
    font-size: 36px;
  }

  .login-brand p {
    font-size: 16px;
    line-height: 1.5;
  }

  .logo-badge {
    width: 78px;
    height: 78px;
    font-size: 34px;
  }

  .login-responsive-page .login-box {
    padding: 30px 22px;
  }

  .login-box h2 {
    font-size: 25px;
  }

  .login-box input,
  .login-box button,
  .create-account-btn {
    font-size: 16px;
  }
}

/* ===== SMALL PHONE ===== */
@media (max-width: 480px) {
  .navbar .logo {
    font-size: 24px;
  }

  .login-responsive-page {
    padding: 24px 12px;
  }

  .login-responsive-page .login-brand {
    min-height: 260px;
    padding: 28px 18px;
  }

  .login-brand h1 {
    font-size: 30px;
  }

  .login-brand p {
    font-size: 15px;
  }

  .login-responsive-page .login-box {
    padding: 25px 18px;
    border-radius: 15px;
  }

  .login-box h2 {
    font-size: 22px;
  }

  .forgot-password-wrap {
    text-align: center;
  }

  .divider {
    gap: 8px;
  }

  .social-btn {
    width: 45px;
    height: 45px;
  }
}

/* ===== VERY SMALL PHONE ===== */
@media (max-width: 360px) {
  .navbar .logo {
    font-size: 21px;
  }

  .login-brand h1 {
    font-size: 27px;
  }

  .login-responsive-page .login-box {
    padding: 22px 14px;
  }

  .login-box input {
    padding: 13px;
  }

  .login-box button {
    padding: 13px;
  }
}

/* ===== FIX LOGIN PAGE FOR SMARTPHONE ===== */

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .navbar {
    height: auto !important;
    min-height: 65px;
    padding: 14px 18px !important;
    position: relative;
  }

  .navbar .logo {
    font-size: 22px !important;
  }

  .navbar .nav-toggle {
    display: block !important;
    margin-left: auto;
  }

  .navbar .nav-links {
    display: none !important;
    position: absolute;
    top: 65px;
    right: 15px;
    width: 220px;
    background: var(--blue);
    border-radius: 12px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  }

  .navbar.active .nav-links {
    display: flex !important;
  }

  .navbar .nav-links a {
    font-size: 16px;
  }

  .fb-login-page,
  .login-responsive-page {
    min-height: auto !important;
    width: 100% !important;
    padding: 25px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 22px !important;
    background: var(--light-bg);
  }

  body.dark-mode .fb-login-page,
  body.dark-mode .login-responsive-page {
    background: var(--dark-bg);
  }

  .login-brand {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 280px !important;
    margin: 0 !important;
    padding: 30px 22px !important;
    border-radius: 18px !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .logo-badge {
    width: 75px !important;
    height: 75px !important;
    font-size: 34px !important;
    margin: 0 auto 18px !important;
  }

  .login-brand h1 {
    font-size: 34px !important;
    margin-bottom: 15px !important;
  }

  .login-brand p {
    font-size: 16px !important;
    line-height: 1.5 !important;
    max-width: 320px !important;
  }

  .login-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 28px 20px !important;
    border-radius: 18px !important;
  }

  .login-box h2 {
    font-size: 24px !important;
    margin-bottom: 22px !important;
  }

  .login-box input {
    width: 100% !important;
    padding: 14px !important;
    font-size: 15px !important;
  }

  .login-box button[type="submit"] {
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important;
  }

  .forgot-password-wrap {
    text-align: right !important;
    margin-top: -5px !important;
    margin-bottom: 14px !important;
  }

  .forgot-password-link {
    font-size: 14px !important;
  }

  .divider {
    margin: 22px 0 16px !important;
  }

  .social-btn {
    width: 45px !important;
    height: 45px !important;
    font-size: 22px !important;
  }

  .create-account-btn {
    width: 100% !important;
    padding: 13px !important;
    font-size: 15px !important;
  }
}

/* ===== VERY SMALL PHONE ===== */
@media (max-width: 420px) {
  .navbar .logo {
    font-size: 20px !important;
  }

  .fb-login-page,
  .login-responsive-page {
    padding: 20px 10px !important;
  }

  .login-brand {
    min-height: 250px !important;
    padding: 25px 16px !important;
  }

  .login-brand h1 {
    font-size: 30px !important;
  }

  .login-brand p {
    font-size: 15px !important;
  }

  .login-box {
    padding: 24px 16px !important;
  }

  .login-box h2 {
    font-size: 21px !important;
  }

  .forgot-password-wrap {
    text-align: center !important;
  }
}
/* ===== LOGIN MOBILE HAMBURGER FIX ===== */
@media (max-width: 700px) {
  .login-navbar {
    height: 75px;
    position: relative;
    padding: 0 25px;
  }

  .login-navbar .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .login-navbar .nav-links {
    display: none !important;
    position: absolute;
    top: 75px;
    right: 15px;
    width: 230px;
    background: var(--blue);
    border-radius: 12px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
  }

  .login-navbar.active .nav-links {
    display: flex !important;
  }

  .login-navbar .nav-links a {
    font-size: 16px;
  }

  .login-navbar .theme-btn {
    font-size: 22px;
  }
}
/* ======================================================
   FINAL RESPONSIVE + FANTASTIC HOMEPAGE DESIGN
====================================================== */

/* ===== HOME NAVBAR DESKTOP ===== */
.home-navbar {
  width: 100% !important;
  min-height: 92px !important;
  padding: 18px 7% !important;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: relative !important;
  z-index: 1000 !important;
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.35) !important;
}

.home-logo {
  color: white !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  letter-spacing: -0.8px !important;
  white-space: nowrap !important;
}

.home-nav-center {
  display: flex !important;
  align-items: center !important;
  gap: 38px !important;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.home-nav-center a {
  color: white !important;
  text-decoration: none !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  transition: 0.25s ease !important;
}

.home-nav-center a:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  transform: translateY(-2px) !important;
}

.home-nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 26px !important;
}

.login-nav-btn {
  color: white !important;
  text-decoration: none !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  padding: 13px 34px !important;
  border: 3px solid white !important;
  border-radius: 999px !important;
  transition: 0.25s ease !important;
}

.login-nav-btn:hover {
  background: white !important;
  color: #1e3a8a !important;
}

.home-navbar .theme-btn {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.18) !important;
  font-size: 26px !important;
  cursor: pointer !important;
}

.home-nav-toggle {
  display: none !important;
}

/* ===== HERO SECTION ===== */
.hero-home {
  min-height: calc(100vh - 92px) !important;
  padding: 110px 7% 120px !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-position: center !important;
  background-size: cover !important;
}

.hero-home::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.45), transparent 35%),
    radial-gradient(circle at 80% 35%, rgba(14, 165, 233, 0.35), transparent 35%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.9)) !important;
  z-index: 1 !important;
}

.hero-text {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  max-width: 1050px !important;
  padding: 55px 45px !important;
  text-align: center !important;
  border-radius: 32px !important;
  background: rgba(15, 23, 42, 0.42) !important;
  border: 1px solid rgba(147, 197, 253, 0.25) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(12px) !important;
}

.hero-text h1 {
  color: #bfdbfe !important;
  font-size: clamp(42px, 6vw, 72px) !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  letter-spacing: -2px !important;
  margin-bottom: 28px !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.hero-text p {
  color: #f8fafc !important;
  font-size: clamp(17px, 2.3vw, 23px) !important;
  line-height: 1.75 !important;
  max-width: 950px !important;
  margin: 0 auto 45px !important;
  font-weight: 600 !important;
}

.hero-main-btn {
  display: inline-block !important;
  padding: 20px 46px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #ffffff, #dbeafe) !important;
  color: #1e3a8a !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35) !important;
  transition: 0.25s ease !important;
}

.hero-main-btn:hover {
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 22px 55px rgba(59, 130, 246, 0.45) !important;
}

/* ===== TABLET ===== */
@media (max-width: 1000px) {
  .home-navbar {
    padding: 18px 5% !important;
  }

  .home-logo {
    font-size: 30px !important;
  }

  .home-nav-center {
    gap: 24px !important;
  }

  .home-nav-center a {
    font-size: 18px !important;
  }

  .login-nav-btn {
    font-size: 18px !important;
    padding: 11px 28px !important;
  }

  .hero-home {
    padding: 80px 24px 90px !important;
  }

  .hero-text {
    padding: 45px 30px !important;
  }
}

/* ===== PHONE HAMBURGER ===== */
@media (max-width: 768px) {
  .home-navbar {
    min-height: 84px !important;
    padding: 16px 20px !important;
  }

  .home-logo {
    font-size: 26px !important;
  }

  .home-nav-toggle {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 54px !important;
    height: 54px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 2px solid white !important;
    font-size: 30px !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    z-index: 10001 !important;
  }

  .home-nav-center,
  .home-nav-right {
    display: none !important;
  }

  .home-navbar.active .home-nav-center {
    display: flex !important;
    position: absolute !important;
    top: 94px !important;
    right: 16px !important;
    left: auto !important;
    transform: none !important;
    width: 250px !important;
    background: rgba(37, 99, 235, 0.96) !important;
    border-radius: 18px 18px 0 0 !important;
    padding: 22px 22px 10px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35) !important;
  }

  .home-navbar.active .home-nav-right {
    display: flex !important;
    position: absolute !important;
    top: 256px !important;
    right: 16px !important;
    width: 250px !important;
    background: rgba(37, 99, 235, 0.96) !important;
    border-radius: 0 0 18px 18px !important;
    padding: 10px 22px 22px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35) !important;
  }

  .home-nav-center a,
  .login-nav-btn {
    width: 100% !important;
    text-align: center !important;
    font-size: 18px !important;
    padding: 13px !important;
    border-radius: 12px !important;
  }

  .home-navbar .theme-btn {
    width: 100% !important;
    height: 48px !important;
    border-radius: 12px !important;
  }

  .hero-home {
    min-height: calc(100vh - 84px) !important;
    padding: 55px 14px 70px !important;
  }

  .hero-text {
    padding: 35px 20px !important;
    border-radius: 26px !important;
  }

  .hero-text h1 {
    font-size: 38px !important;
    letter-spacing: -1px !important;
    margin-bottom: 22px !important;
  }

  .hero-text p {
    font-size: 16px !important;
    line-height: 1.65 !important;
    margin-bottom: 34px !important;
  }

  .hero-main-btn {
    width: 100% !important;
    max-width: 310px !important;
    padding: 17px 22px !important;
    font-size: 17px !important;
  }
}

/* ===== SMALL PHONE ===== */
@media (max-width: 430px) {
  .home-navbar {
    min-height: 78px !important;
    padding: 14px 16px !important;
  }

  .home-logo {
    font-size: 23px !important;
  }

  .home-nav-toggle {
    width: 50px !important;
    height: 50px !important;
    font-size: 27px !important;
  }

  .home-navbar.active .home-nav-center,
  .home-navbar.active .home-nav-right {
    right: 12px !important;
    width: 230px !important;
  }

  .hero-home {
    padding: 40px 12px 60px !important;
  }

  .hero-text {
    padding: 30px 17px !important;
    border-radius: 24px !important;
  }

  .hero-text h1 {
    font-size: 32px !important;
  }

  .hero-text p {
    font-size: 15px !important;
  }

  .hero-main-btn {
    font-size: 16px !important;
    padding: 15px 18px !important;
  }
}
/* ================= WHOIS / RDAP INFORMATION ================= */

.whois-container {
  width: 100%;
  margin-top: 30px;
}

.whois-container h2 {
  color: #5eead4;
  margin-bottom: 20px;
  text-align: left;
}

.whois-card {
  background: #111827;
  border: 1px solid #1e40af;
  border-radius: 14px;
  margin-bottom: 22px;
  overflow: hidden;
}

.whois-card h3 {
  color: #67e8f9;
  padding: 18px 22px;
  border-bottom: 1px solid #334155;
  font-size: 18px;
}

.whois-table {
  width: 100%;
  border-collapse: collapse;
}

.whois-table tr {
  border-bottom: 1px solid #334155;
}

.whois-table tr:last-child {
  border-bottom: none;
}

.whois-table th {
  width: 180px;
  padding: 14px 22px;
  text-align: left;
  color: #cbd5e1;
  font-weight: 700;
  vertical-align: top;
}

.whois-table td {
  padding: 14px 22px;
  color: #ffffff;
  word-break: break-word;
}

body:not(.dark-mode) .whois-card {
  background: #ffffff;
  border-color: #d1d5db;
}

body:not(.dark-mode) .whois-card h3 {
  color: #111827;
  border-bottom-color: #d1d5db;
}

body:not(.dark-mode) .whois-table tr {
  border-bottom-color: #e5e7eb;
}

body:not(.dark-mode) .whois-table th {
  color: #6b7280;
}

body:not(.dark-mode) .whois-table td {
  color: #111827;
}

@media (max-width: 600px) {
  .whois-table th,
  .whois-table td {
    display: block;
    width: 100%;
    padding: 10px 16px;
  }

  .whois-table th {
    padding-bottom: 4px;
  }

  .whois-table td {
    padding-top: 4px;
  }
}

/* ================= WHOIS FULL INFORMATION ================= */

.whois-info-card {
  margin-bottom: 22px;
  overflow: hidden;
}

.whois-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.whois-section-title h2 {
  margin: 0;
  color: #67e8f9;
  font-size: 20px;
}

.whois-icon {
  color: #fb923c;
  font-size: 20px;
}

.whois-info-table {
  width: 100%;
}

.whois-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.whois-row:last-child {
  border-bottom: none;
}

.whois-row span {
  color: #cbd5e1;
  font-weight: 700;
}

.whois-row p {
  margin: 0;
  color: white;
  line-height: 1.5;
}

body:not(.dark-mode) .whois-section-title h2 {
  color: #111827;
}

body:not(.dark-mode) .whois-row span {
  color: #6b7280;
}

body:not(.dark-mode) .whois-row p {
  color: #111827;
}

@media (max-width: 600px) {
  .whois-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
/* ======================================================
   SCAN RESULT PAGE WITH NAVBAR
====================================================== */

.scan-result-page {
  min-height: calc(100vh - 78px);
  padding: 45px 20px;
  background: #f3f6fb;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

body.dark-mode .scan-result-page {
  background: #0f172a;
}

.scan-report-card {
  width: 100%;
  max-width: 900px;
  background: white;
  border-radius: 18px;
  padding: 35px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

body.dark-mode .scan-report-card {
  background: #111827;
  color: white;
  border: 1px solid #1e40af;
}

.scan-report-header h1 {
  color: #111827;
  font-size: 32px;
  margin-bottom: 10px;
}

.scan-report-header p {
  color: #6b7280;
  margin-bottom: 25px;
}

body.dark-mode .scan-report-header h1 {
  color: #67e8f9;
}

body.dark-mode .scan-report-header p {
  color: #cbd5e1;
}

.report-section {
  background: #f8fafc;
  border: 1px solid #c7d2fe;
  border-left: 4px solid #22d3ee;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
}

body.dark-mode .report-section {
  background: #1e293b;
  border-color: #334155;
  border-left-color: #22d3ee;
}

.report-section h2 {
  color: #111827;
  margin-bottom: 18px;
  font-size: 22px;
}

body.dark-mode .report-section h2 {
  color: #67e8f9;
}

.report-row {
  display: flex;
  gap: 10px;
  margin-bottom: 13px;
  flex-wrap: wrap;
}

.report-row strong {
  color: #111827;
}

.report-row span {
  color: #374151;
}

body.dark-mode .report-row strong {
  color: #e5e7eb;
}

body.dark-mode .report-row span {
  color: #cbd5e1;
}

.hash-box {
  margin-bottom: 18px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.metadata-grid > div {
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
}

.metadata-grid strong,
.metadata-grid span {
  display: block;
}

.metadata-grid strong {
  margin-bottom: 5px;
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
}

.metadata-grid span {
  color: #111827;
  overflow-wrap: anywhere;
}

.pe-section-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pe-section-list span {
  padding: 7px 10px;
  border-radius: 6px;
  background: #e0e7ff;
  color: #3730a3;
  font-family: monospace;
  font-size: 13px;
}

.file-indicators {
  margin: 0;
  padding-left: 20px;
  color: #b45309;
}

.file-indicators li + li {
  margin-top: 7px;
}

body.dark-mode .metadata-grid > div {
  border-color: #334155;
  background: #0f172a;
}

body.dark-mode .metadata-grid strong {
  color: #94a3b8;
}

body.dark-mode .metadata-grid span {
  color: #e5e7eb;
}

body.dark-mode .pe-section-list span {
  background: #312e81;
  color: #e0e7ff;
}

.hash-box label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
  color: #111827;
}

body.dark-mode .hash-box label {
  color: #e5e7eb;
}

.hash-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hash-copy-row code {
  flex: 1;
  display: block;
  background: #e5e7eb;
  padding: 12px;
  border-radius: 8px;
  color: #111827;
  word-break: break-all;
  font-size: 13px;
}

body.dark-mode .hash-copy-row code {
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid #334155;
}

.hash-copy-row button {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #3b6ff5;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.hash-copy-row button:hover {
  background: #2846a3;
}

.risk-badge {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  margin-top: 8px;
}

.risk-badge.low {
  background: #dcfce7;
  color: #15803d;
}

.risk-badge.medium {
  background: #fef3c7;
  color: #92400e;
}

.risk-badge.high {
  background: #fee2e2;
  color: #b91c1c;
}

.risk-badge.unknown,
.badge.unknown {
  background: #e2e8f0;
  color: #475569;
}

.vt-score-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  margin-top: 18px;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  background: #eef2ff;
}

.vt-score-panel strong,
.vt-score-label {
  display: block;
}

.vt-score-label {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.vt-score-panel strong {
  margin-top: 4px;
  color: #111827;
  font-size: 28px;
}

.vt-score-detail {
  display: block;
  margin-top: 3px;
  color: #64748b;
}

.vt-detections-heading {
  margin: 24px 0 12px;
  color: #111827;
  font-size: 18px;
}

.vt-detections-table-wrap {
  overflow-x: auto;
}

.vt-detections-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.vt-detections-table th,
.vt-detections-table td {
  padding: 10px;
  border-bottom: 1px solid #cbd5e1;
  text-align: left;
}

.vt-detections-table th {
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
}

.vt-category {
  font-weight: 800;
  text-transform: capitalize;
}

.vt-category.malicious { color: #b91c1c; }
.vt-category.suspicious { color: #b45309; }

.vt-clean-message {
  color: #15803d;
  font-weight: 700;
}

body.dark-mode .vt-score-panel {
  background: #172554;
  border-color: #1e40af;
}

body.dark-mode .vt-score-panel strong,
body.dark-mode .vt-detections-heading {
  color: #e5e7eb;
}

body.dark-mode .vt-score-label,
body.dark-mode .vt-detections-table th {
  color: #cbd5e1;
}

body.dark-mode .vt-score-detail {
  color: #94a3b8;
}

body.dark-mode .vt-detections-table td {
  border-color: #334155;
  color: #e5e7eb;
}

body.dark-mode .risk-badge.unknown,
body.dark-mode .badge.unknown {
  background: #334155;
  color: #e2e8f0;
}

.report-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.report-actions .btn {
  display: inline-block;
  padding: 13px 20px;
  background: #4f46e5;
  color: white;
  border-radius: 9px;
  font-weight: 800;
  text-decoration: none;
}

.report-actions .btn:hover {
  background: #3b6ff5;
}

.scan-result-page .report-actions :is(.btn, .scan-print-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 235px;
  min-height: 68px;
  padding: 12px 20px;
  text-align: center;
}

.report-actions .danger-btn {
  background: #991b1b;
}

.report-actions .danger-btn:hover {
  background: #dc2626;
}

@media (max-width: 768px) {
  .scan-result-page {
    padding: 25px 12px;
  }

  .scan-report-card {
    padding: 24px 16px;
  }

  .scan-report-header h1 {
    font-size: 26px;
  }

  .hash-copy-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hash-copy-row button {
    width: 100%;
  }

  .report-actions {
    flex-direction: column;
  }

  .report-actions :is(.btn, .scan-print-button) {
    width: 100%;
    text-align: center;
  }
}

.vendor-results-table { font-size: 13px; }
.vendor-results-table th, .vendor-results-table td { padding: 7px 10px; }
.vendor-results-table td:nth-child(3), .vendor-results-table td:nth-child(4) { white-space: nowrap; }
.vendor-results-table .vendor-verdict { overflow-wrap: anywhere; }
.vendor-results-table .flagged { color: #b91c1c; background: #fff1f2; }
.vendor-results-table .undetected { color: #166534; background: #f0fdf4; }
.vendor-results-table .unavailable { color: #52525b; background: #f4f4f5; }
body.dark-mode .vendor-results-table .flagged { color: #fda4af; background: #3b1723; }
body.dark-mode .vendor-results-table .undetected { color: #86efac; background: #123125; }
body.dark-mode .vendor-results-table .unavailable { color: #d4d4d8; background: #27272a; }
