/* ========================================
   Scammer Database - Private Portal
   Dark Theme Stylesheet
   ======================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-hover: #22222e;

    --text-primary: #e8e8ed;
    --text-secondary: #9898a6;
    --text-muted: #66667a;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;

    --border-color: #2a2a3a;
    --border-light: #3a3a4a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-secondary);
}

/* ========================================
   Login Page
   ======================================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f0f1a 100%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.shield-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--accent-primary);
}

.shield-icon svg {
    width: 100%;
    height: 100%;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.login-form .input-group {
    margin-bottom: 24px;
}

.login-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.login-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.btn-login svg {
    width: 18px;
    height: 18px;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--text-secondary);
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.nav-brand svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-links a.active {
    background: var(--accent-primary);
    color: white;
}

.nav-logout {
    margin-left: 16px;
    color: var(--accent-danger) !important;
}

/* ========================================
   Main Content
   ======================================== */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ========================================
   Search Section
   ======================================== */

.search-section {
    text-align: center;
    padding: 60px 0 40px;
}

.search-section h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.search-section .subtitle {
    margin-bottom: 32px;
}

.search-form,
.search-again,
.domain-search-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s;
}

.search-box:focus-within {
    border-color: var(--accent-primary);
}

.search-type {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: none;
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    min-width: 100px;
}

.search-type:focus {
    outline: none;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.btn-search {
    padding: 16px 24px;
    background: var(--accent-primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-search:hover {
    background: var(--accent-secondary);
}

.btn-search svg {
    width: 20px;
    height: 20px;
}

.search-tips {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.search-tips h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.search-tips ul {
    list-style: none;
}

.search-tips li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.search-tips strong {
    color: var(--text-primary);
}

/* ========================================
   Sources Grid
   ======================================== */

.recent-section {
    margin-top: 60px;
}

.recent-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.source-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: transform 0.2s, border-color 0.2s;
}

.source-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
}

.source-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.source-icon svg {
    width: 24px;
    height: 24px;
}

.source-icon.leak {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
}

.source-icon.ghunt {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.source-icon.domain {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
}

.source-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.source-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========================================
   Search Results
   ======================================== */

.results-header {
    margin-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.search-query {
    color: var(--text-secondary);
}

.search-type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-primary);
    color: white;
    font-size: 12px;
    border-radius: 20px;
    margin-left: 8px;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-secondary);
}

.results-section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-title svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.result-source {
    font-weight: 600;
    color: var(--accent-primary);
}

.result-email {
    font-family: monospace;
    font-size: 14px;
    color: var(--text-secondary);
}

.result-count {
    font-size: 13px;
    color: var(--text-muted);
}

.result-description {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(99, 102, 241, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.result-body {
    padding: 20px;
}

.profile-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.profile-photo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.profile-details {
    flex: 1;
}

.detail-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 120px;
}

.detail-value {
    font-family: monospace;
    color: var(--text-primary);
}

.record-item {
    padding: 16px 0;
}

.record-separator {
    border-top: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table tr {
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:last-child {
    border-bottom: none;
}

.data-table td {
    padding: 10px 0;
    vertical-align: top;
}

.field-name {
    font-weight: 500;
    color: var(--text-secondary);
    width: 140px;
    font-size: 13px;
}

.field-value {
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
}

.search-again {
    margin-top: 40px;
}

/* ========================================
   Domains Page
   ======================================== */

.domain-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.search-results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.clear-search {
    font-size: 14px;
}

.domains-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.domains-table {
    width: 100%;
    border-collapse: collapse;
}

.domains-table th {
    text-align: left;
    padding: 14px 20px;
    background: var(--bg-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.domains-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.domains-table tr:last-child td {
    border-bottom: none;
}

.domains-table tr:hover td {
    background: var(--bg-hover);
}

.domain-name {
    font-family: monospace;
}

.source-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    font-size: 11px;
    border-radius: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.source-more {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-small {
    padding: 6px 12px;
    background: var(--accent-primary);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-small:hover {
    background: var(--accent-secondary);
    color: white;
}

.show-more-info {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   Statistics Page
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.stat-card.large {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .stat-card.large {
        grid-column: span 2;
    }
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.detail-section h2 {
    font-size: 16px;
    margin-bottom: 20px;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.source-item {
    display: grid;
    grid-template-columns: 160px 1fr 80px;
    gap: 12px;
    align-items: center;
}

.source-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.source-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.source-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
}

.source-count {
    font-size: 13px;
    color: var(--text-muted);
    text-align: right;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.country-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.country-name {
    font-weight: 500;
    font-size: 13px;
}

.country-count {
    color: var(--text-muted);
    font-size: 13px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

/* ========================================
   Search Hero & Main Form
   ======================================== */

.search-hero {
    text-align: center;
    padding: 60px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.search-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-form-main {
    margin-top: 32px;
}

.search-input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-icon svg {
    width: 22px;
    height: 22px;
}

.search-input-large {
    width: 100%;
    padding: 18px 20px 18px 56px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 17px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-large:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.search-input-large::placeholder {
    color: var(--text-muted);
}

/* Captcha Box */
.captcha-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.captcha-math {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-primary);
    font-family: 'SF Mono', Monaco, monospace;
}

.captcha-input {
    width: 70px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s;
}

.captcha-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.btn-search-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-search-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-search-main svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Results Container
   ======================================== */

.results-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.results-summary {
    text-align: center;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.results-summary h2 {
    font-size: 20px;
    margin-bottom: 24px;
}

.results-summary .highlight {
    color: var(--accent-primary);
    font-family: 'SF Mono', Monaco, monospace;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.summary-stat {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.summary-stat .stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
}

.summary-stat .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No Results Box */
.no-results-box {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.no-results-box svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-results-box h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.no-results-box p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.no-results-box ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 14px;
}

.no-results-box li {
    padding: 4px 0;
}

/* Related Section */
.related-section {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.related-box {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.related-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 16px;
}

.related-box h3 svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-family: 'SF Mono', Monaco, monospace;
}

.domain-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.email-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.muted {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

/* Passwords Grid */
.passwords-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.password-item {
    display: inline-block;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-danger);
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 14px;
    word-break: break-all;
}

/* Section Block */
.section-block {
    margin-bottom: 32px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.section-title svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

/* GHunt Card */
.ghunt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.ghunt-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-bottom: 1px solid var(--border-color);
}

.ghunt-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
}

.ghunt-photo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--border-color);
}

.ghunt-photo-placeholder svg {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
}

.ghunt-info {
    flex: 1;
}

.ghunt-email {
    font-size: 16px;
    font-weight: 600;
    font-family: 'SF Mono', Monaco, monospace;
}

.ghunt-id {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.ghunt-details {
    padding: 20px;
}

.ghunt-detail {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.ghunt-detail:last-child {
    border-bottom: none;
}

.ghunt-detail .label {
    color: var(--text-secondary);
    min-width: 140px;
    font-size: 14px;
}

.ghunt-detail .value {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
}

/* Leak Card */
.leak-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.leak-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: background 0.2s;
}

.leak-header:hover {
    background: var(--bg-hover);
}

.leak-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leak-name {
    font-weight: 600;
    color: var(--accent-danger);
}

.leak-count {
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: 20px;
}

.leak-header .chevron {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.leak-card.expanded .chevron {
    transform: rotate(180deg);
}

.leak-description {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(239, 68, 68, 0.05);
    border-bottom: 1px solid var(--border-color);
    display: none;
}

.leak-card.expanded .leak-description {
    display: block;
}

.leak-records {
    padding: 20px;
    display: none;
}

.leak-card.expanded .leak-records {
    display: block;
}

.record-card {
    padding: 16px 0;
}

.record-divider {
    border-top: 1px dashed var(--border-color);
    margin-top: 16px;
}

.record-table {
    width: 100%;
    border-collapse: collapse;
}

.record-table tr {
    border-bottom: 1px solid var(--border-color);
}

.record-table tr:last-child {
    border-bottom: none;
}

.record-table td {
    padding: 10px 0;
    vertical-align: top;
}

.field-label {
    font-size: 13px;
    color: var(--text-secondary);
    width: 150px;
    font-weight: 500;
}

.field-value {
    font-size: 13px;
    font-family: 'SF Mono', Monaco, monospace;
    word-break: break-all;
}

/* Info Section */
.info-section {
    max-width: 900px;
    margin: 60px auto 0;
    text-align: center;
}

.info-section h2 {
    font-size: 24px;
    margin-bottom: 32px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: transform 0.2s, border-color 0.2s;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
}

.info-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
}

.info-icon svg {
    width: 28px;
    height: 28px;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   Responsive
   ======================================== */

/* ========================================
   Browse Page
   ======================================== */

.browse-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.filter-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.filter-sidebar h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.2s;
}

.filter-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.filter-item.active {
    background: var(--accent-primary);
    color: white;
}

.filter-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.filter-count {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.filter-item.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
}

.browse-content {
    min-width: 0;
}

.browse-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.browse-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.browse-card-header {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.source-badge-large {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
}

.browse-card-body {
    padding: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.page-btn:hover {
    background: var(--accent-secondary);
    color: white;
}

.page-btn svg {
    width: 16px;
    height: 16px;
}

.page-info {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 992px) {
    .browse-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
        max-height: none;
    }

    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        padding: 24px 16px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-type {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .source-item {
        grid-template-columns: 1fr 60px;
    }

    .source-bar {
        display: none;
    }

    .stats-details {
        grid-template-columns: 1fr;
    }

    .domains-table th,
    .domains-table td {
        padding: 12px 10px;
    }

    .domain-sources {
        display: none;
    }
}

/* ========================================
   Captcha & Security Styles
   ======================================== */

.captcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.captcha-container iframe {
    border-radius: var(--radius-md);
}

.rate-limit-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    color: var(--accent-warning);
    font-size: 14px;
    margin-bottom: 16px;
}

.rate-limit-info svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.security-notice {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    margin-top: 32px;
}

.security-notice svg {
    width: 32px;
    height: 32px;
    color: var(--accent-success);
    flex-shrink: 0;
}

.security-notice strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.security-notice p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Search button loading state */
.btn-search-main:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-search-main:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

/* ========================================
   Threat Score Indicator
   ======================================== */

.threat-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.threat-indicator.high {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.threat-indicator.medium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.threat-indicator.low {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ========================================
   Identity Info Card
   ======================================== */

.identity-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.identity-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.identity-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
}

.identity-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--border-color);
    color: var(--text-muted);
}

.identity-avatar-placeholder svg {
    width: 36px;
    height: 36px;
}

.identity-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.identity-email {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    color: var(--text-secondary);
}

.identity-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.identity-detail {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.identity-detail .label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.identity-detail .value {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}

/* ========================================
   Screenshots Grid (URLScan)
   ======================================== */

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.screenshot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.screenshot-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.screenshot-image-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.screenshot-image-placeholder svg {
    width: 48px;
    height: 48px;
}

.screenshot-info {
    padding: 16px;
}

.screenshot-domain {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-primary);
    word-break: break-all;
}

.screenshot-domain a {
    color: var(--accent-primary);
}

.screenshot-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.screenshot-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.screenshot-meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.screenshot-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Domains Grid
   ======================================== */

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.domain-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

.domain-card:hover {
    border-color: var(--accent-primary);
}

.domain-card a {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    word-break: break-all;
}

.domain-card.blacklisted {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
}

.blacklist-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.blacklist-badge svg {
    width: 12px;
    height: 12px;
}

/* ========================================
   Contacts Grid
   ======================================== */

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.contact-card h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-detail {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.contact-detail .label {
    color: var(--text-muted);
    min-width: 80px;
}

.contact-detail .value {
    color: var(--text-secondary);
    font-family: 'SF Mono', Monaco, monospace;
    word-break: break-all;
}

/* ========================================
   Passwords List (Full)
   ======================================== */

.passwords-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.password-item-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
}

.password-value {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 15px;
    color: var(--accent-danger);
    font-weight: 600;
    word-break: break-all;
}

.password-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.password-source {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: 4px;
}

.password-url {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   WHOIS Records
   ======================================== */

.whois-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.whois-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.whois-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.whois-domain {
    font-family: 'SF Mono', Monaco, monospace;
    font-weight: 600;
    color: var(--accent-success);
}

.whois-date {
    font-size: 12px;
    color: var(--text-muted);
}

.whois-body {
    padding: 16px 18px;
}

.whois-row {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.whois-row:last-child {
    border-bottom: none;
}

.whois-row .label {
    color: var(--text-muted);
    font-size: 13px;
    min-width: 120px;
}

.whois-row .value {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'SF Mono', Monaco, monospace;
    word-break: break-all;
}

/* ========================================
   Registrars List
   ======================================== */

.registrars-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.registrar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.registrar-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

/* ========================================
   Companies List
   ======================================== */

.companies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.company-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--accent-primary);
}

.company-item svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   Related Connections
   ======================================== */

.connections-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.connection-item {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.connection-item:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    cursor: pointer;
}

/* ========================================
   Blacklist Status Card
   ======================================== */

.blacklist-status {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.blacklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.blacklist-service {
    font-size: 14px;
    color: var(--text-primary);
}

.blacklist-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.blacklist-status-badge.listed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

.blacklist-status-badge.clean {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
}

/* ========================================
   Section Collapse
   ======================================== */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.section-header:hover {
    color: var(--accent-primary);
}

.section-header .chevron {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.section-header.collapsed .chevron {
    transform: rotate(-90deg);
}

.section-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.section-content.collapsed {
    max-height: 0;
    margin-top: 0;
}

/* ========================================
   Empty State
   ======================================== */

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* ========================================
   Results Stats Bar
   ======================================== */

.results-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-item .stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin: 0;
}

.stat-item .stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-item .stat-icon.domains {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
}

.stat-item .stat-icon.passwords {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
}

.stat-item .stat-icon.leaks {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
}

.stat-item .stat-icon.contacts {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.stat-info .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-info .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   Leak Records Enhanced
   ======================================== */

.leak-records-section {
    margin-top: 24px;
}

.leak-record-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.leak-record-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(239, 68, 68, 0.05);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.leak-record-header:hover {
    background: rgba(239, 68, 68, 0.1);
}

.leak-record-name {
    font-weight: 600;
    color: var(--accent-danger);
}

.leak-record-count {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: 20px;
    color: var(--text-muted);
}

.leak-record-body {
    padding: 16px 18px;
    display: none;
}

.leak-record-card.expanded .leak-record-body {
    display: block;
}

.leak-record-card .chevron {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.leak-record-card.expanded .chevron {
    transform: rotate(180deg);
}

/* ========================================
   Info Grid Compact
   ======================================== */

.info-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item .label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    color: var(--text-primary);
}

/* ========================================
   Screenshot Card Extras
   ======================================== */

.screenshot-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.screenshot-card img:hover {
    opacity: 0.9;
}

.screenshot-ip,
.screenshot-asn {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.report-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--accent-primary);
}

.report-link:hover {
    color: var(--accent-secondary);
}

/* ========================================
   Contact Card Extras
   ======================================== */

.contact-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-company {
    font-size: 14px;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.contact-phone {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-address,
.contact-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========================================
   WHOIS Card Extras
   ======================================== */

.whois-details {
    padding: 12px 0;
}

.whois-details > div {
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.whois-details > div:last-child {
    border-bottom: none;
}

/* ========================================
   Registrar Item Extras
   ======================================== */

.registrar-name {
    font-weight: 500;
    color: var(--text-primary);
}

.registrar-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* ========================================
   Brand Badge
   ======================================== */

.brand-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
    font-size: 11px;
    border-radius: 4px;
    margin-top: 6px;
}

/* ========================================
   Company Tag
   ======================================== */

.company-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ========================================
   Summary Stat Danger State
   ======================================== */

.summary-stat.danger .stat-value {
    color: var(--accent-danger);
}

/* ========================================
   Responsive Adjustments for New Elements
   ======================================== */

@media (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .domains-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .info-grid-compact {
        grid-template-columns: 1fr;
    }

    .password-item-full {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .password-meta {
        align-items: flex-start;
    }
}

/* ========================================
   NEW: Scores Row
   ======================================== */

.scores-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.intel-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ========================================
   NEW: Google Card (Full)
   ======================================== */

.google-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    align-items: flex-start;
}

.google-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    flex-shrink: 0;
}

.google-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.google-details .info-item {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.google-details .label {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 130px;
}

.google-details .value {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    color: var(--text-primary);
}

/* ========================================
   NEW: Leaks List (Full Records)
   ======================================== */

.leaks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leak-record {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.leak-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.leak-source {
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-danger);
}

.leak-type {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: 4px;
    text-transform: uppercase;
}

.leak-data {
    padding: 12px 16px;
    background: var(--bg-secondary);
}

.leak-data code {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
    white-space: pre-wrap;
}

/* Parsed leak fields */
.leak-fields {
    padding: 14px 16px;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leak-field {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--border-color);
}

.leak-field-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
}

.leak-field-value {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 13px;
    color: var(--text-primary);
    word-break: break-all;
}

.leak-field-value.password-highlight {
    color: var(--accent-danger);
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.leak-field-value.hash-value {
    color: var(--accent-warning);
    font-size: 12px;
}

/* Leak record with data has special border */
.leak-record:has(.leak-fields) {
    border-left: 3px solid var(--accent-danger);
}

.leak-record:has(.leak-fields) .leak-header-row {
    background: rgba(239, 68, 68, 0.08);
}

/* ========================================
   NEW: VirusTotal Grid
   ======================================== */

.vt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.vt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.vt-card.vt-danger {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
}

.vt-domain {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    word-break: break-all;
}

.vt-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.vt-mal {
    font-size: 12px;
    padding: 3px 8px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
    border-radius: 4px;
}

.vt-sus {
    font-size: 12px;
    padding: 3px 8px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
    border-radius: 4px;
}

.vt-clean {
    font-size: 12px;
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    border-radius: 4px;
}

.vt-rep,
.vt-registrar {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.vt-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 8px;
    display: inline-block;
}

.vt-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

.vt-badge.safe {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
}

/* ========================================
   NEW: Domain Card Extras
   ======================================== */

.domain-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.domain-card .domain-name {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}

.domain-card.vt-malicious {
    border-color: rgba(245, 158, 11, 0.4);
}

.risk-score {
    font-size: 11px;
    color: var(--accent-warning);
    margin-top: 4px;
}

/* ========================================
   NEW: Stats Block
   ======================================== */

.stats-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.stats-block .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 0;
}

.stats-block .stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.stats-block .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.stats-block .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
}

.stats-block .stat-value.danger {
    color: var(--accent-danger);
}

/* ========================================
   NEW: Actor Tag
   ======================================== */

.actor-tag {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ========================================
   NEW: Highlight Number
   ======================================== */

.highlight-number {
    color: var(--accent-danger) !important;
    font-weight: 700;
}

/* ========================================
   NEW: No Screenshot Placeholder
   ======================================== */

.no-screenshot {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   NEW: Screenshot Server Info
   ======================================== */

.screenshot-server {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========================================
   Responsive for New Elements
   ======================================== */

@media (max-width: 768px) {
    .scores-row {
        flex-direction: column;
        gap: 10px;
    }

    .google-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .google-details .info-item {
        flex-direction: column;
        gap: 4px;
    }

    .google-details .label {
        min-width: auto;
    }

    .vt-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Legal Warning Box
   ======================================== */

.legal-warning {
    margin-top: 32px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-md);
    text-align: left;
}

.legal-warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--accent-danger);
    font-size: 16px;
}

.legal-icon {
    font-size: 20px;
}

.legal-warning-content {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.legal-warning-content p {
    margin-bottom: 12px;
}

.legal-warning-content ul {
    list-style: none;
    margin: 12px 0;
    padding: 0;
}

.legal-warning-content li {
    padding: 6px 0;
    color: #f87171;
}

.legal-warning-content .legal-small {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(239, 68, 68, 0.2);
}

.footer-security {
    color: var(--accent-danger);
    font-size: 11px;
    margin-top: 8px;
}
