/* EXCAVATOR — shared base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif; background: #fff; color: #495057; min-height: 100vh; line-height: 1.5; }
a { color: #343a40; text-decoration: none; }
a:hover { color: #23272b; text-decoration: underline; }
h1, h2, h3, h4 { color: #2d343a; }
code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; color: #2d343a; background: #f1f3f5; padding: 2px 6px; border-radius: 4px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 32px 15px 80px; }

/* Brand */
.brand { text-align: center; }
.brand-link { display: inline-block; color: inherit; text-decoration: none; }
.brand-link:hover { text-decoration: none; color: inherit; }
.brand-logo { display: block; margin: 0 auto; width: 232px; height: auto; }
.brand-name { display: block; font-size: 46px; letter-spacing: 3px; color: #2d343a; font-weight: 400; margin-top: 6px; line-height: 1.1; }
.brand-name strong { font-weight: 700; }
.brand-tagline { font-size: 17px; color: #6c757d; margin-top: 10px; line-height: 1.4; }
.brand-compact .brand-logo { width: 110px; }
.brand-compact .brand-name { font-size: 28px; letter-spacing: 2px; margin-top: 2px; }

/* Search panel */
.search-panel { display: block; width: 100%; margin-top: 46px; border: 1px solid #dee2e6; border-radius: 6px; padding: 24px; background: #fff; }
.search-box { display: flex; align-items: stretch; }
.search-input { flex: 1 1 auto; min-width: 0; height: 58px; font-size: 20px; padding: 0 18px; border: 1px solid #ced4da; border-right: none; border-radius: 4px 0 0 4px; color: #495057; outline: none; background: #fff; font-family: inherit; }
.search-input::placeholder { color: #6c757d; opacity: 1; }
.search-input:focus { border-color: #adb5bd; }
.search-btn { flex: 0 0 auto; height: 58px; padding: 0 30px; background: #343a40; color: #fff; border: 1px solid #343a40; border-radius: 0 4px 4px 0; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; font-family: inherit; white-space: nowrap; }
.search-btn:hover { background: #23272b; border-color: #23272b; }

/* Buttons & cards */
.btn { display: inline-block; padding: 14px 30px; background: #343a40; color: #fff; border: 1px solid #343a40; border-radius: 4px; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; font-family: inherit; }
.btn:hover { background: #23272b; border-color: #23272b; color: #fff; text-decoration: none; }
.btn-secondary { background: #fff; color: #343a40; }
.btn-secondary:hover { background: #f8f9fa; color: #23272b; }
.card { border: 1px solid #dee2e6; border-radius: 6px; padding: 24px; background: #fff; }

/* Footer */
.rule { margin: 64px 0 0; border: 0; border-top: 1px solid #e6e8ea; }
.footer { text-align: center; margin-top: 58px; }
.footer-links { font-size: 22px; color: #6c757d; font-weight: 700; line-height: 1.3; text-transform: uppercase; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: #343a40; }
.copyright { font-size: 15px; color: #6c757d; margin-top: 18px; }
.footer-onion { font-size: 13px; color: #6c757d; margin-top: 10px; word-break: break-all; }
.footer-onion code { font-size: 12px; background: none; padding: 0; color: #6c757d; }

@media (max-width: 600px) {
  .brand-logo { width: 170px; }
  .brand-name { font-size: 36px; }
  .search-panel { padding: 14px; margin-top: 32px; }
  .search-input { height: 50px; font-size: 17px; padding: 0 14px; }
  .search-btn { height: 50px; padding: 0 18px; font-size: 15px; }
  .footer-links { font-size: 17px; }
  .rule { margin-top: 48px; }
  .footer { margin-top: 40px; }
}

/* Navigation (admin) */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid #e6e8ea; flex-wrap: wrap; gap: 12px; }
.nav-logo { font-size: 22px; font-weight: 700; color: #2d343a; letter-spacing: 2px; text-transform: uppercase; }
.nav-logo:hover { text-decoration: none; color: #2d343a; }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: #6c757d; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-links a:hover, .nav-links a.active { color: #2d343a; text-decoration: none; }

/* Home */
.home-main { display: flex; flex-direction: column; align-items: center; padding: 0; }
.home-title { font-size: 46px; letter-spacing: 3px; color: #2d343a; font-weight: 400; text-transform: uppercase; margin-top: 40px; }
.home-subtitle { color: #6c757d; font-size: 17px; margin: 8px 0 24px; }
.home-stats { display: flex; gap: 32px; color: #6c757d; font-size: 14px; margin-top: 24px; }
.home-stats strong { color: #2d343a; }

/* Page content */
.page-content { max-width: 720px; margin: 40px auto 0; }
.page-content h1 { font-size: 32px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px; }
.page-content h2 { font-size: 20px; letter-spacing: 1px; text-transform: uppercase; margin: 32px 0 12px; }
.page-content p { line-height: 1.7; margin-bottom: 16px; }
.page-content ul { margin-left: 24px; margin-bottom: 16px; }
.page-content li { line-height: 1.7; margin-bottom: 6px; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; color: #2d343a; font-size: 15px; }
.required { color: #6c757d; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; background: #fff; border: 1px solid #ced4da; border-radius: 4px; color: #495057; font-size: 16px; font-family: inherit; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #343a40; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { display: inline-block; padding: 14px 30px; background: #343a40; color: #fff; border: 1px solid #343a40; border-radius: 4px; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; font-family: inherit; }
.form-submit:hover { background: #23272b; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 24px 0; }
.pricing-card { border: 1px solid #dee2e6; border-radius: 6px; padding: 28px 20px; text-align: center; }
.pricing-card h3 { font-size: 16px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.pricing-card .price { font-size: 28px; font-weight: 700; color: #2d343a; margin-bottom: 16px; }
.pricing-card .price span { font-size: 14px; font-weight: 400; color: #6c757d; }
.pricing-card ul { list-style: none; margin: 0; padding: 0; }
.pricing-card li { padding: 6px 0; color: #6c757d; font-size: 14px; border-bottom: 1px solid #e6e8ea; }
.pricing-card li:last-child { border-bottom: none; }

/* Results */
.results-main { max-width: 720px; margin: 0 auto; width: 100%; }
.search-panel-top { margin-top: 32px; margin-bottom: 24px; }
.results-info { color: #6c757d; font-size: 14px; margin-bottom: 20px; }
.results-list { display: flex; flex-direction: column; gap: 20px; }
.result-item { padding-bottom: 20px; border-bottom: 1px solid #e6e8ea; }
.result-url { display: block; color: #6c757d; font-size: 13px; margin-bottom: 2px; word-break: break-all; }
.result-title { display: block; color: #2d343a; font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.result-title:hover { color: #000; }
.result-desc { color: #495057; font-size: 15px; line-height: 1.5; margin: 0; }
.result-category { display: inline-block; margin-top: 6px; border: 1px solid #dee2e6; color: #6c757d; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; }
.search-ad-item .result-category { background: #343a40; border-color: #343a40; color: #fff; }
.results-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.page-link { display: inline-block; padding: 6px 12px; border: 1px solid #dee2e6; border-radius: 4px; color: #343a40; font-size: 14px; }
.page-link.active { background: #343a40; border-color: #343a40; color: #fff; }
.page-link:hover { text-decoration: none; background: #f8f9fa; }
.page-ellipsis { display: inline-block; padding: 6px 4px; color: #6c757d; font-size: 14px; }
.search-ads-section { border-bottom: 1px solid #e6e8ea; padding-bottom: 8px; margin-bottom: 16px; }
.promoted-section-search { margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #e6e8ea; }

/* Messages */
.form-message { padding: 12px 16px; border: 1px solid #dee2e6; border-radius: 4px; margin-bottom: 20px; font-size: 15px; line-height: 1.6; }
.form-message.success { background: #f8f9fa; border-color: #343a40; color: #2d343a; }
.form-message.error { background: #fff; border-color: #b02a37; color: #b02a37; }

/* Promoted */
.promoted-section { margin-top: 32px; text-align: center; width: 100%; max-width: 600px; }
.promoted-title { color: #6c757d; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; font-weight: 400; }
.promoted-list { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.promoted-item { display: block; }
.promoted-item:hover { text-decoration: none; opacity: 0.9; }
.promoted-banner { max-width: 100%; object-fit: cover; border-radius: 4px; border: 1px solid #dee2e6; }
.promoted-placeholder { display: flex; align-items: center; justify-content: center; max-width: 100%; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 4px; color: #495057; font-size: 14px; }

/* Search disabled */
.search-error-box { text-align: center; padding: 60px 24px; border: 1px solid #dee2e6; border-radius: 6px; margin-top: 20px; }
.search-error-title { font-size: 24px; margin-bottom: 12px; }
.search-error-text { color: #6c757d; font-size: 16px; line-height: 1.6; }
.search-error-onion-btn { display: inline-block; margin-top: 20px; padding: 14px 30px; background: #343a40; color: #fff; border-radius: 4px; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }
.search-error-onion-btn:hover { background: #23272b; color: #fff; text-decoration: none; }

@media (max-width: 600px) {
  .home-title { font-size: 36px; }
  .home-stats { flex-direction: column; align-items: center; gap: 8px; }
  .pricing { grid-template-columns: 1fr; }
  .promoted-section { max-width: 100%; }
  .promoted-banner, .promoted-placeholder { max-width: 100%; height: auto !important; }
  .page-content h1 { font-size: 26px; }
}
