/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #00d2ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== HEADER / NAV ===== */
header {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  border-bottom: 2px solid #00d2ff;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #00d2ff;
  letter-spacing: 1px;
}

.logo svg {
  width: 32px;
  height: 32px;
}

nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav a {
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(0,210,255,0.08);
  color: #ccc;
  font-size: 0.85rem;
  transition: all 0.2s;
}
nav a:hover, nav a.active {
  background: rgba(0,210,255,0.22);
  color: #00d2ff;
  text-decoration: none;
}

/* ===== HERO / SEARCH ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 3rem;
  flex: 1;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.hero p {
  color: #8899aa;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.search-box {
  display: flex;
  width: 100%;
  max-width: 620px;
  background: #16213e;
  border: 2px solid #304060;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.search-box:focus-within { border-color: #00d2ff; }

.search-box input {
  flex: 1;
  padding: 14px 18px;
  font-size: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
}
.search-box input::placeholder { color: #556; }

.search-box button {
  padding: 14px 28px;
  background: linear-gradient(135deg, #00d2ff, #0091d5);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s;
}
.search-box button:hover {
  background: linear-gradient(135deg, #00e5ff, #00b0ff);
}

/* ===== RESULTS AREA ===== */
.results-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  width: 100%;
}

.action-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.action-buttons button {
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid #304060;
  background: #16213e;
  color: #ccc;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.action-buttons button:hover {
  border-color: #00d2ff;
  color: #00d2ff;
}
.action-buttons button.active {
  background: rgba(0,210,255,0.15);
  border-color: #00d2ff;
  color: #00d2ff;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .results-grid { grid-template-columns: 1fr; }
}

/* Breakdown Header */
.breakdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.breakdown-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #7889a8;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.breakdown-domain {
  font-size: 0.8rem;
  font-weight: 400;
  color: #00d2ff;
}

/* Breakdown Grid */
.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 1.8rem;
}
.breakdown-card {
  background: linear-gradient(145deg, #16213e 0%, #192d50 100%);
  border: 1px solid #25355a;
  border-radius: 12px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.breakdown-card:hover {
  border-color: var(--accent-color, #304060);
  box-shadow: 0 0 16px -4px var(--accent-color, transparent);
}
.breakdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color, #25355a);
  border-radius: 12px 12px 0 0;
}
.breakdown-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.breakdown-card-icon {
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  flex-shrink: 0;
}
.breakdown-card-label {
  font-size: 0.68rem;
  color: #7889a8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}
.breakdown-card-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e0e0e0;
  line-height: 1.4;
}
.breakdown-provider {
  font-weight: 700;
}
.breakdown-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: #556;
  margin-top: 3px;
  word-break: break-all;
  line-height: 1.3;
}
.breakdown-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(243, 128, 32, 0.15);
  color: #f38020;
  margin-left: 6px;
  vertical-align: middle;
}
.breakdown-date {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #556;
  margin-top: 2px;
}
.spinner-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #304060;
  border-top-color: #00d2ff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@media (max-width: 1100px) {
  .breakdown-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .breakdown-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #16213e;
  border: 1px solid #25355a;
  border-radius: 10px;
  overflow: hidden;
}

.card-header {
  background: linear-gradient(90deg, #1a2744, #1e3054);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #00d2ff;
  border-bottom: 1px solid #25355a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header .icon { font-size: 1.1rem; }

.card-body {
  padding: 16px 18px;
  font-size: 0.88rem;
  line-height: 1.7;
  max-height: 500px;
  overflow-y: auto;
}

.card-body table {
  width: 100%;
  border-collapse: collapse;
}
.card-body th, .card-body td {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid #1f2e4a;
}
.card-body th {
  color: #7799bb;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
}
.card-body td { color: #ccc; }

.card-full { grid-column: 1 / -1; }

.whois-pre {
  white-space: pre-wrap;
  word-break: break-all;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.82rem;
  color: #aabbcc;
  line-height: 1.65;
}

/* ===== LOADING SPINNER ===== */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #304060;
  border-top-color: #00d2ff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  color: #7799bb;
  font-size: 0.9rem;
  padding: 20px;
  text-align: center;
}

/* ===== PAGE CONTENT (Help, Commands, Password) ===== */
.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  width: 100%;
}

.page-content h2 {
  color: #00d2ff;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #25355a;
  padding-bottom: 0.5rem;
}

.page-content h3 {
  color: #e0e0e0;
  margin: 1.5rem 0 0.8rem;
  font-size: 1.1rem;
}

.page-content p {
  color: #aabbcc;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.page-content img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #25355a;
  margin: 1rem 0;
}

/* ===== COMMANDS TABLE ===== */
.cmd-section {
  margin-bottom: 2rem;
}

.cmd-section h3 {
  background: linear-gradient(90deg, #1a2744, #1e3054);
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  color: #00d2ff;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.cmd-table {
  width: 100%;
  border-collapse: collapse;
  background: #16213e;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  margin-bottom: 0;
}
.cmd-table th, .cmd-table td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid #1f2e4a;
  font-size: 0.85rem;
}
.cmd-table th {
  background: #1a2744;
  color: #7799bb;
  font-weight: 600;
}
.cmd-table td:last-child {
  font-family: 'Consolas', 'Courier New', monospace;
  color: #4ade80;
  font-size: 0.82rem;
}

/* ===== PASSWORD GENERATOR (1Password Style) ===== */
.pw-page {
  max-width: 600px;
}

.pw-generator-card {
  background: #16213e;
  border: 1px solid #25355a;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
}

/* Password Display Area */
.pw-display {
  background: linear-gradient(135deg, #0f1729, #162040);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #25355a;
}

.pw-display-text {
  flex: 1;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 1.4rem;
  letter-spacing: 2px;
  word-break: break-all;
  line-height: 1.6;
  min-height: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.pw-char-letter { color: #e0e0e0; }
.pw-char-num { color: #00d2ff; }
.pw-char-sym { color: #fb923c; }

.pw-display-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.pw-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,210,255,0.1);
  border: 1px solid #304060;
  border-radius: 10px;
  color: #8899aa;
  cursor: pointer;
  transition: all 0.2s;
}

.pw-icon-btn:hover {
  background: rgba(0,210,255,0.2);
  border-color: #00d2ff;
  color: #00d2ff;
}

.pw-icon-btn.copied {
  background: rgba(74,222,128,0.2);
  border-color: #4ade80;
  color: #4ade80;
}

.pw-icon-btn.spinning svg {
  animation: spin 0.3s ease;
}

/* Strength Meter Bar */
.pw-strength-bar-container {
  height: 4px;
  background: #0f1729;
  overflow: hidden;
}

.pw-strength-bar {
  height: 100%;
  width: 0;
  transition: width 0.4s ease, background 0.4s ease;
  border-radius: 0 2px 2px 0;
}

.pw-strength-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  border-bottom: 1px solid #25355a;
}

.pw-strength-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Crack Time Card */
.pw-crack-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid #25355a;
  transition: background 0.3s;
}
.pw-crack-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.pw-crack-info {
  flex: 1;
}
.pw-crack-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 2px;
}
.pw-crack-subtitle {
  font-size: 0.72rem;
  color: #556;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pw-crack-fantastic { background: rgba(23,201,100,0.08); }
.pw-crack-fantastic .pw-crack-time { color: #17c964; }
.pw-crack-strong { background: rgba(74,222,128,0.08); }
.pw-crack-strong .pw-crack-time { color: #4ade80; }
.pw-crack-good { background: rgba(163,230,53,0.08); }
.pw-crack-good .pw-crack-time { color: #a3e635; }
.pw-crack-fair { background: rgba(250,204,21,0.08); }
.pw-crack-fair .pw-crack-time { color: #facc15; }
.pw-crack-weak { background: rgba(248,113,113,0.08); }
.pw-crack-weak .pw-crack-time { color: #f87171; }

/* Type Tabs */
.pw-type-tabs {
  display: flex;
  border-bottom: 1px solid #25355a;
}

.pw-type-tab {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #667;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.pw-type-tab:hover {
  color: #aabbcc;
  background: rgba(0,210,255,0.05);
}

.pw-type-tab.active {
  color: #00d2ff;
}

.pw-type-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: #00d2ff;
  border-radius: 2px 2px 0 0;
}

/* Options */
.pw-options {
  padding: 8px 0;
}

.pw-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid #1a2744;
}

.pw-option-row:last-child {
  border-bottom: none;
}

.pw-option-label {
  font-size: 0.9rem;
  color: #ccc;
  font-weight: 500;
}

/* Slider Group */
.pw-slider-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pw-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 160px;
  height: 6px;
  background: #0f1729;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.pw-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #00d2ff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,210,255,0.4);
  transition: transform 0.15s;
}

.pw-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.pw-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #00d2ff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,210,255,0.4);
}

.pw-length-num {
  width: 56px;
  padding: 6px 8px;
  background: #0f1729;
  border: 1px solid #304060;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
}

.pw-length-num:focus {
  outline: none;
  border-color: #00d2ff;
}

/* Toggle Switch */
.pw-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.pw-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pw-switch-slider {
  position: absolute;
  inset: 0;
  background: #304060;
  border-radius: 26px;
  transition: background 0.25s;
}

.pw-switch-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  bottom: 3px;
  left: 3px;
  transition: transform 0.25s;
}

.pw-switch input:checked + .pw-switch-slider {
  background: #00d2ff;
}

.pw-switch input:checked + .pw-switch-slider::before {
  transform: translateX(22px);
}

/* Select dropdown */
.pw-select {
  padding: 6px 12px;
  background: #0f1729;
  border: 1px solid #304060;
  border-radius: 8px;
  color: #ccc;
  font-size: 0.85rem;
  cursor: pointer;
}

.pw-select:focus {
  outline: none;
  border-color: #00d2ff;
}

/* Details panel */
.pw-details-panel {
  background: #16213e;
  border: 1px solid #25355a;
  border-radius: 12px;
  margin-top: 16px;
  overflow: hidden;
}

.pw-details-panel summary {
  padding: 14px 24px;
  cursor: pointer;
  color: #8899aa;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pw-details-panel summary::-webkit-details-marker { display: none; }

.pw-details-panel summary::before {
  content: '▸';
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.pw-details-panel[open] summary::before {
  transform: rotate(90deg);
}

.pw-details-panel summary:hover {
  color: #00d2ff;
}

.pw-details-content {
  padding: 0 24px 20px;
}

.pw-detail-section {
  margin-bottom: 16px;
}

.pw-detail-section:last-child {
  margin-bottom: 0;
}

.pw-detail-section h4 {
  color: #00d2ff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.pw-detail-section p {
  color: #8899aa;
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 4px;
}

.pw-phonetic {
  font-size: 0.8rem;
  color: #8899aa;
  line-height: 1.8;
  word-break: break-all;
}

/* Symbol Picker */
.pw-symbol-picker-row {
  padding: 0 24px 14px;
  border-bottom: 1px solid #1a2744;
}

.pw-symbol-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.sym-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1729;
  border: 1px solid #304060;
  border-radius: 6px;
  color: #556;
  font-size: 0.85rem;
  font-family: 'Consolas', 'Courier New', monospace;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}

.sym-btn:hover {
  border-color: #00d2ff;
  color: #00d2ff;
}

.sym-btn.active {
  background: rgba(0,210,255,0.12);
  border-color: #00d2ff;
  color: #00d2ff;
  font-weight: 700;
}

.pw-symbol-actions {
  display: flex;
  gap: 8px;
}

.pw-sym-action-btn {
  padding: 4px 12px;
  background: transparent;
  border: 1px solid #304060;
  border-radius: 4px;
  color: #667;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pw-sym-action-btn:hover {
  border-color: #00d2ff;
  color: #00d2ff;
}

/* Super Password Card */


/* Password History */
.pw-history-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(0,210,255,0.15);
  color: #00d2ff;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 8px;
}

.pw-history-list {
  max-height: 300px;
  overflow-y: auto;
}

.pw-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #1a2744;
}

.pw-history-item:last-child {
  border-bottom: none;
}

.pw-history-pw {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.78rem;
  color: #aabbcc;
  word-break: break-all;
  flex: 1;
  margin-right: 8px;
}

.pw-history-copy {
  background: transparent;
  border: 1px solid #304060;
  border-radius: 6px;
  color: #667;
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.pw-history-copy:hover {
  border-color: #00d2ff;
  color: #00d2ff;
}

.pw-history-empty {
  color: #556;
  font-size: 0.82rem;
  text-align: center;
  padding: 16px 0;
}

.pw-clear-history-btn {
  margin-top: 12px;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid #443333;
  border-radius: 6px;
  color: #f87171;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pw-clear-history-btn:hover {
  background: rgba(248,113,113,0.1);
  border-color: #f87171;
}

/* ===== NETWORK TOOLS PAGE ===== */
.tools-page {
  max-width: 1100px;
}

.tools-search-row {
  margin-bottom: 1.5rem;
}

.tools-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  background: #16213e;
  border: 2px solid #304060;
  border-radius: 10px;
  color: #fff;
  outline: none;
  transition: border-color 0.3s;
}
.tools-input:focus {
  border-color: #00d2ff;
}
.tools-input::placeholder { color: #556; }

select.tools-input {
  cursor: pointer;
  appearance: auto;
}

.tools-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tools-tab {
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid #304060;
  background: #16213e;
  color: #ccc;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.tools-tab:hover {
  border-color: #00d2ff;
  color: #00d2ff;
}
.tools-tab.active {
  background: rgba(0,210,255,0.15);
  border-color: #00d2ff;
  color: #00d2ff;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 2rem;
}

.tool-card {
  background: #16213e;
  border: 1px solid #25355a;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
}
.tool-card:hover {
  border-color: #00d2ff;
  background: #1a2744;
}

.tool-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}

.tool-card-info {
  flex: 1;
  min-width: 0;
}
.tool-card-info h3 {
  color: #e0e0e0;
  font-size: 0.95rem;
  margin: 0 0 4px;
}
.tool-card-info p {
  color: #7799bb;
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.4;
}

.tool-run-btn {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #00d2ff, #0091d5);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.tool-run-btn:hover {
  background: linear-gradient(135deg, #00e5ff, #00b0ff);
}

.tool-results {
  background: #16213e;
  border: 1px solid #25355a;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
}

.tool-results-header {
  background: linear-gradient(90deg, #1a2744, #1e3054);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #25355a;
}
.tool-results-header h3 {
  color: #00d2ff;
  font-size: 0.95rem;
  margin: 0;
}

.tool-close-btn {
  background: none;
  border: none;
  color: #7799bb;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}
.tool-close-btn:hover {
  color: #f87171;
  background: rgba(248,113,113,0.1);
}

.tool-results-body {
  padding: 18px;
  font-size: 0.88rem;
  line-height: 1.7;
  max-height: 600px;
  overflow-y: auto;
}

.tool-results-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}
.tool-results-body th, .tool-results-body td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #1f2e4a;
}
.tool-results-body th {
  color: #7799bb;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}
.tool-results-body td {
  color: #ccc;
}

.tool-status {
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.tool-status-ok {
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
}
.tool-status-warn {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
}
.tool-status-error {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  color: #f87171;
}

.tool-error {
  color: #f87171;
  font-size: 0.9rem;
}
.tool-empty {
  color: #7799bb;
  font-size: 0.9rem;
}

.tool-record-box {
  background: #0f1729;
  border: 1px solid #25355a;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0;
  word-break: break-all;
}
.tool-record-box code {
  color: #4ade80;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
}

.tool-issues {
  list-style: none;
  padding: 0;
}
.tool-issues li {
  color: #f87171;
  font-size: 0.85rem;
  padding: 4px 0;
}
.tool-issues li::before {
  content: '• ';
  color: #f87171;
}

.tool-health-score {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.tool-health-num {
  font-size: 3rem;
  font-weight: 800;
}
.tool-health-label {
  font-size: 1.2rem;
  opacity: 0.7;
}

.tool-health-bar-bg {
  height: 8px;
  background: #0f1729;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.tool-health-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.tool-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.tool-modal-content {
  background: #16213e;
  border: 1px solid #25355a;
  border-radius: 12px;
  padding: 24px;
  max-width: 440px;
  width: 90%;
}
.tool-modal-content h3 {
  color: #00d2ff;
  margin: 0 0 8px;
}
.tool-modal-content p {
  color: #8899aa;
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 768px) {
  .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tool-card { padding: 12px 14px; gap: 10px; }
  .tool-card-icon { font-size: 1.4rem; width: 36px; }
  .tool-card-info h3 { font-size: 0.85rem; }
  .tool-card-info p { font-size: 0.72rem; }
  .tool-run-btn { padding: 6px 14px; font-size: 0.78rem; }
  .tools-tab { padding: 6px 12px; font-size: 0.78rem; }
  .tool-results-body { padding: 12px; }
  .tool-results-body th, .tool-results-body td { padding: 6px 8px; font-size: 0.78rem; }
}

/* ===== FOOTER ===== */
footer {
  background: #0f0c29;
  border-top: 1px solid #25355a;
  padding: 1.2rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #556;
}

footer a { color: #00d2ff; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f1729; }
::-webkit-scrollbar-thumb { background: #304060; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #405575; }

/* ===== EXTRA TOOL RESULT PANEL ===== */
.tool-panel {
  background: #16213e;
  border: 1px solid #25355a;
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 1.5rem;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.82rem;
  color: #aabbcc;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 400px;
  overflow-y: auto;
}

/* Tag badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 4px;
}
.badge-a { background: rgba(0,210,255,0.15); color: #00d2ff; }
.badge-mx { background: rgba(168,85,247,0.15); color: #a855f7; }
.badge-ns { background: rgba(74,222,128,0.15); color: #4ade80; }
.badge-txt { background: rgba(250,204,21,0.15); color: #facc15; }
.badge-soa { background: rgba(251,146,60,0.15); color: #fb923c; }
.badge-email { background: rgba(59,130,246,0.15); color: #3b82f6; }

/* Email Provider Card */
.email-provider-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
}
.email-provider-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
}
.email-provider-info {
  flex: 1;
  min-width: 0;
}
.email-provider-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 2px;
}
.email-provider-desc {
  font-size: 0.8rem;
  color: #667;
}
.email-provider-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.email-provider-details {
  margin-top: 12px;
  border-top: 1px solid #25355a;
  padding-top: 12px;
}
.email-provider-detail {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.82rem;
  color: #c0c0c0;
}
.email-provider-detail-label {
  color: #667;
  font-weight: 600;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 600px) {
  html { font-size: 14px; }

  header {
    flex-direction: column;
    padding: 0.6rem 1rem;
    gap: 8px;
  }

  .logo { font-size: 1.1rem; }
  .logo svg { width: 26px; height: 26px; }

  nav {
    width: 100%;
    justify-content: center;
    gap: 4px;
  }
  nav a {
    padding: 6px 10px;
    font-size: 0.78rem;
    flex: 1;
    text-align: center;
    min-width: 0;
  }

  .page-content { padding: 1rem; }

  .search-box {
    padding: 1.5rem 1rem;
  }
  .search-box h1 { font-size: 1.4rem; }
  .search-box p { font-size: 0.82rem; }
  .search-form input { font-size: 0.85rem; padding: 10px 14px; }
  .search-form button { padding: 10px 18px; font-size: 0.85rem; }

  .pw-display {
    padding: 20px 16px;
  }

  .pw-display-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .pw-option-row {
    padding: 12px 16px;
  }

  .pw-slider {
    width: 120px;
  }

  .pw-type-tab {
    font-size: 0.78rem;
    padding: 10px 8px;
  }

  .pw-strength-row {
    padding: 8px 16px;
  }

  .pw-crack-card {
    padding: 10px 16px;
    gap: 10px;
  }
  .pw-crack-time {
    font-size: 0.95rem;
  }

  .pw-details-content {
    padding: 0 16px 16px;
  }

  .pw-details-panel summary {
    padding: 12px 16px;
  }

  .card-header { padding: 10px 14px; font-size: 0.82rem; }
  .card-body { padding: 12px 14px; }

  .cmd-section h3 { padding: 10px 14px; font-size: 0.82rem; }
  .cmd-section .cmd-body { padding: 12px 14px; }

  footer { padding: 1rem; font-size: 0.75rem; }
}

@media (max-width: 400px) {
  nav a {
    padding: 5px 6px;
    font-size: 0.7rem;
  }
  .pw-display-text { font-size: 0.95rem; }
  .pw-slider { width: 100px; }
}
