/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #6b7280;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: transparent;
    border-bottom: none;
    box-shadow: none;
    position: static;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    height: 50px;
    width: auto;
}

.header-nav-right {
    margin-left: auto;
}

.header-search-form {
    flex: 0 0 360px;
    max-width: 360px;
    display: flex;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.header-search-form .header-search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    font-size: 0.9375rem;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    min-width: 0;
}

.header-search-form .header-search-input::placeholder {
    color: var(--text-muted);
}

.header-search-form .header-search-btn {
    padding: 0 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.header-search-form .header-search-btn:hover {
    background: var(--primary-dark);
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--primary-color);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
}

.lang-btn:hover {
    background: var(--border-color);
}

.lang-dropdown {
    z-index: 1001;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.language-selector:hover .lang-dropdown,
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: background 0.2s;
}

.lang-option:hover,
.lang-option.active {
    background: var(--bg-color);
}

.lang-option.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Hero Section */
.hero-section {
    padding: 30px 0 40px;
    background: transparent;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-title-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-logo {
    display: block;
    flex-shrink: 0;
}

.hero-logo .logo-img {
    height: 100px;
    width: auto;
}

.hero-right {
    flex: 1;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Search Box */
.search-box {
    max-width: 660px;
    width: 100%;
    margin: 0 auto 30px;
}

.domain-form {
    width: 100%;
}

.input-wrapper {
    display: flex;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.domain-input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    font-size: 1.125rem;
    outline: none;
    background: transparent;
    color: var(--text-primary);
}

.domain-input::placeholder {
    color: var(--text-muted);
}

.check-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.check-btn:hover {
    background: var(--primary-dark);
}

/* Form Error Message */
.form-error {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    color: #dc2626;
    font-size: 0.9375rem;
    text-align: center;
}

/* Compact Input Wrapper for Report Page */
.input-wrapper.compact {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.input-wrapper.compact .domain-input {
    padding: 10px 16px;
    font-size: 0.9375rem;
    flex: 1;
}

.input-wrapper.compact .check-btn {
    padding: 0 20px;
    font-size: 0.9375rem;
    gap: 6px;
}

.input-wrapper.compact .check-btn .btn-text {
    font-size: 0.9375rem;
}

.input-wrapper.compact .btn-icon {
    width: 16px;
    height: 16px;
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    color: #ffffff;
}

.feature-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Info Section - Hidden (moved to floating panel) */
.info-section {
    display: none;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--card-bg);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-card p,
.info-card ul {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.info-card ul {
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 6px;
}

/* Floating Info Panel */
.info-floating {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.info-toggle-btn {
    outline: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.info-toggle-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.info-toggle-btn.active {
    background: var(--primary-dark);
}

.info-panel {
    position: absolute;
    right: 60px;
    top: 0;
    width: 320px;
    max-height: 500px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.info-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.info-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.info-panel-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.info-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.info-close-btn:hover {
    background: var(--error-color);
    color: white;
}

.info-panel-content {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.info-panel-content .info-card {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.info-panel-content .info-card:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.info-panel-content .info-card h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.info-panel-content .info-card p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.info-panel-content .info-card ul {
    padding-left: 16px;
    font-size: 0.85rem;
}

.info-panel-content .info-card li {
    margin-bottom: 4px;
}

/* Report Section */
.report-section {
    padding: 40px 0 60px;
}

.report-layout {
    flex-direction: row;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.report-sidebar {
    order: 2;
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    position: sticky;
    top: 100px;
    align-self: start;
    height: fit-content;
}

.report-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 850px;
    order: 1;
}

.report-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 20px;
}

.report-title {
    font-size: 1.75rem;
    margin-bottom: 0;
}

.report-title .domain-name {
    color: var(--primary-color);
    word-break: break-all;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.social-btn.twitter {
    background: var(--primary-dark);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.linkedin {
    background: #0a66c2;
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn.copy-link {
    background: #6b7280;
}

/* Social Share Buttons in View Toggle Bar */
.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white !important;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.social-share-btn[data-platform="x"] {
    background: var(--primary-dark);
}

.social-share-btn[data-platform="facebook"] {
    background: #1877f2;
}

.social-share-btn[data-platform="reddit"] {
    background: #ff4500;
}

.social-share-btn[data-platform="pinterest"] {
    background: #e60023;
}

.social-share-btn[data-platform="wechat"] {
    background: #07c160;
}

/* WeChat share tooltip */
.wechat-tooltip {
    position: absolute;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    z-index: 100;
    display: none;
}

.wechat-tooltip.show {
    display: block;
}

/* View Toggle Bar */
.view-toggle-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.view-toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.view-toggle-right {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    justify-content: flex-end;
}

/* New layout for mobile-friendly design */
.view-toggle-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.view-toggle-bottom {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    justify-content: flex-end;
}

/* Copy Link Button */
.view-link.copy-link {
    position: relative;
}

.view-link.copy-link.copied {
    color: var(--success-color);
}

.view-link.copy-link.copied::after {
    content: attr(data-copied-text);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: var(--success-color);
    color: white;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

/* Ad Slots */
.ad-slot {
    margin: 20px 0;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.ad-placeholder {
    text-align: center;
}

.ad-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ad-content {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
}

/* Card View Ad Slot */
.card-ad-slot {
    display: none; /* Hidden by default, shown via JS if space available */
}

.card-ad-slot.visible {
    display: block;
}

/* Table View Ad Slot */
.table-ad-slot {
    margin: 16px 0;
}

.table-ad-slot .ad-content {
    min-height: 90px;
}

.view-icon {
    margin-right: 4px;
    vertical-align: middle;
}

.whois-link {
    display: flex;
    align-items: center;
}

/* Ad Container */
.ad-container {
    margin-top: 20px;
    padding: 12px;
    background: transparent;
    border-radius: var(--radius);
    box-shadow: none;
    border: none;
    text-align: center;
}

.ad-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-placeholder {
    width: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
}

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

.ad-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.ad-size {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Namecheap Ad Styles V2 - Clean Card Design */
.namecheap-ad-v2 {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.namecheap-ad-v2 .ad-content-v2 {
    color: #333;
    text-align: center;
    width: 100%;
}

.ad-title-v2 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.ad-price-v2 {
    margin-bottom: 16px;
}

.ad-price-main-v2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #333;
}

.ad-price-period-v2 {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.ad-cta-btn-v2 {
    display: block;
    background: #dc2626;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.ad-cta-btn-v2:hover {
    background: #b91c1c;
}

.ad-renewal-v2 {
    font-size: 0.8125rem;
    color: #666;
    margin: 0 0 16px 0;
}

.ad-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 16px 0;
}

.ad-features-v2 {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.ad-features-v2 li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #444;
    margin-bottom: 12px;
}

.ad-features-v2 li:last-child {
    margin-bottom: 0;
}

.check-icon {
    color: #16a34a;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* New ad link style */
.ad-link-full {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.ad-link-full:hover {
    transform: scale(1.02);
}

.ad-desc-v2 {
    font-size: 0.9rem;
    color: #555;
    margin: 8px 0 12px 0;
    line-height: 1.4;
}

.ad-features li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.ad-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
}

.report-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.view-toggle {
    margin-top: 8px;
}

.view-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.view-link:hover {
    background: rgba(37, 99, 235, 0.1);
}

.view-link.active {
    font-weight: 700;
    text-decoration: underline;
}

.view-separator {
    color: var(--text-muted);
    margin: 0 2px;
}

.check-another-btn,
.whois-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.2s;
    width: 100%;
    max-width: 240px;
}

.check-another-btn {
    background: var(--primary-color);
    color: white;
}

.check-another-btn:hover {
    background: var(--primary-dark);
}

.whois-btn {
    background: #10b981;
    color: white;
    border: none;
}

.whois-btn:hover {
    background: #059669;
}

.btn-icon {
    flex-shrink: 0;
}

.report-title {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.report-title .domain-name {
    color: var(--primary-color);
    word-break: break-all;
}

.score-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--card-bg);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    flex-shrink: 0;
}

.score-circle.score-good {
    border-color: var(--success-color);
    color: var(--success-color);
}

.score-circle.score-warning {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.score-circle.score-bad {
    border-color: var(--error-color);
    color: var(--error-color);
}

.score-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.score-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
}

.score-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.score-item.ok .score-dot {
    background: var(--success-color);
}

.score-item.warning .score-dot {
    background: var(--warning-color);
}

.score-item.error .score-dot {
    background: var(--error-color);
}

.score-count {
    font-weight: 700;
    min-width: 24px;
}



/* Report Grid */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.report-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-left: 4px solid var(--info-color);
}

.report-card.full-width {
    grid-column: 1 / -1;
}

.report-card.status-ok {
    border-left-color: var(--success-color);
}

.report-card.status-warning {
    border-left-color: var(--warning-color);
}

.report-card.status-error {
    border-left-color: var(--error-color);
}

.report-card.status-info {
    border-left-color: var(--info-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-ok {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.status-badge.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.status-badge.status-info {
    background: rgba(107, 114, 128, 0.1);
    color: var(--info-color);
}

.card-body {
    padding: 20px;
}

.card-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* Record Lists */
.record-list {
    list-style: none;
}

.record-item {
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    word-break: break-all;
}

.record-item:last-child {
    margin-bottom: 0;
}

.record-item.ip-address {
    color: var(--primary-color);
}

.record-item.txt-record {
    font-size: 0.75rem;
}

/* SOA Details */
.soa-details {
    margin-bottom: 12px;
}

.soa-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.soa-row:last-child {
    border-bottom: none;
}

.soa-label {
    color: var(--text-muted);
}

.soa-value {
    font-family: 'Monaco', 'Menlo', monospace;
    color: var(--text-primary);
}

/* Record Tables */
.record-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.record-table th,
.record-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.record-table th {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-color);
}

.record-table .priority {
    font-weight: 700;
    color: var(--primary-color);
}

.record-table .no-data {
    color: var(--text-muted);
}

.server-row.status-ok {
    background: rgba(16, 185, 129, 0.05);
}

.server-row.status-warning {
    background: rgba(245, 158, 11, 0.05);
}

.server-row.status-error {
    background: rgba(239, 68, 68, 0.05);
}

.inline-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.inline-badge.status-ok {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.inline-badge.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.inline-badge.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* SPF/DMARC Records */
.spf-record,
.dmarc-record {
    background: var(--bg-color);
    padding: 12px;
    border-radius: var(--radius);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.75rem;
    word-break: break-all;
    margin-bottom: 12px;
}

/* Error Section */
.error-section {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    color: var(--error-color);
    margin-bottom: 24px;
}

.error-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.back-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.2s;
}

.back-btn:hover {
    background: var(--primary-dark);
}

/* Footer */
.site-footer {
    background-color: transparent;
    border-top: none;
    padding: 24px 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.footer-powered {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .report-layout {
        flex-direction: row;
        gap: 20px;
    }
    
    .report-sidebar {
        order: 2;
        flex: 0 0 240px;
        min-width: 240px;
        max-width: 240px;
        position: sticky;
        top: 100px;
        align-self: start;
        height: fit-content;
    }

    .report-content {
        order: 1;
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
    }
    
    .report-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .score-card {
        justify-content: center;
    }
    
    .report-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .check-another-btn,
    .whois-btn {
        width: auto;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .hero-title-row {
        flex-direction: column;
        gap: 16px;
    }

    .hero-logo .logo-img {
        height: 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .check-btn {
        padding: 14px;
        justify-content: center;
    }
    
    .features {
        gap: 24px;
    }
    
    .score-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .report-layout {
        flex-direction: column;
    }

    .report-sidebar {
        order: 2;
        flex: 0 0 auto;
        min-width: unset;
        max-width: 100%;
        width: 100%;
        position: static;
    }

    .report-content {
        order: 1;
        min-width: 0;
        max-width: 100%;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }
    
    .record-table {
        font-size: 0.75rem;
    }
    
    .record-table th,
    .record-table td {
        padding: 8px;
    }
    
    .test-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .test-name {
        flex: 1;
    }
    
    .report-actions {
        flex-direction: column;
    }
    
    .social-share {
        justify-content: flex-start;
    }
    
    .social-btn {
        width: 32px;
        height: 32px;
    }
    
    .view-toggle-bar {
        padding: 16px;
        margin-bottom: 16px;
        flex-direction: column;
        gap: 16px;
    }
    
    .view-toggle-top {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .view-toggle-top .view-link {
        font-size: 0.875rem;
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    .view-toggle-top .view-separator {
        margin: 0 4px;
    }
    
    .view-toggle-top .view-icon {
        width: 16px;
        height: 16px;
    }

    /* Social share buttons mobile adaptation */
    .social-share-btn {
        width: 26px;
        height: 26px;
    }

    .social-share-btn .view-icon {
        width: 12px;
        height: 12px;
    }
    
    .view-toggle-bottom {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: auto;
    }
    
    .view-toggle-bottom .quick-search-form {
        width: 100%;
        max-width: 500px;
    }
    
    .view-toggle-bottom .input-wrapper.compact {
        width: 100%;
    }
    
    .view-toggle-bottom .input-wrapper.compact .domain-input {
        padding: 12px 16px;
        font-size: 1rem;
        min-width: 0;
        height: 48px;
        box-sizing: border-box;
    }
    
    .view-toggle-bottom .input-wrapper.compact .check-btn {
        padding: 0 20px;
        font-size: 0.9375rem;
        height: 48px;
        box-sizing: border-box;
    }
    
    .view-toggle-bottom .input-wrapper.compact .btn-text {
        display: inline;
    }
    
    .view-toggle-bottom .input-wrapper.compact .btn-icon {
        margin: 0;
    }
    
    /* Mobile Ad Slots */
    .ad-slot {
        margin: 16px 0;
        padding: 12px;
    }
    
    .ad-content {
        min-height: 100px;
    }
    
    .table-ad-slot .ad-content {
        min-height: 100px;
    }
    
    .report-title {
        font-size: 1.375rem;
    }

    /* Header search form mobile adaptation */
    .header-content {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        gap: 12px;
    }

    .logo-link {
        flex-shrink: 0;
    }

    .header-logo {
        height: 40px;
    }

    .header-search-form {
        width: 100%;
        max-width: 100%;
        flex: 1;
        order: 3;
    }

    .header-search-form .header-search-input {
        padding: 12px 16px;
        font-size: 1rem;
        height: 48px;
    }

    .header-search-form .header-search-btn {
        padding: 0 20px;
        font-size: 0.9375rem;
        height: 48px;
    }

    .header-nav-right {
        margin-left: auto;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .report-header-row {
        padding-top: 16px;
    }

    .report-sidebar {
        position: static;
        flex: 0 0 auto;
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }
}

/* Report Table View - intodns.com style */
.report-table-view {
    margin-top: 0;
}

.intodns-report {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.test-category {
    border-bottom: 1px solid var(--border-color);
}

.test-category:last-child {
    border-bottom: none;
}

.category-header {
    background: #f5f5f5;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 13px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #ddd;
}

.test-list {
    padding: 0;
}

.test-row {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    gap: 0;
}

.test-row:last-child {
    border-bottom: none;
}

.test-row.status-ok {
    background: #f8fff8;
}

.test-row.status-warning {
    background: #fffbf0;
}

.test-row.status-error {
    background: #fff5f5;
}

.test-name {
    flex: 0 0 45%;
    font-weight: normal;
    color: #333;
    font-size: 13px;
    padding-right: 15px;
}

.test-status {
    flex: 0 0 80px;
    text-align: center;
}

.status-badge-table {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-table.status-ok {
    background: #d4edda;
    color: #155724;
}

.status-badge-table.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge-table.status-error {
    background: #f8d7da;
    color: #721c24;
}

.status-badge-table.status-info {
    background: #e2e3e5;
    color: #383d41;
}

.test-info {
    flex: 1;
    color: #666;
    font-size: 12px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    word-break: break-all;
    padding-left: 15px;
}

/* Responsive for table view */
@media (max-width: 768px) {
    .test-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .test-name {
        flex: 1;
        width: 100%;
    }
    
    .test-status {
        flex: 1;
        text-align: left;
    }
    
    .test-info {
        flex: 1;
        padding-left: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-card {
    animation: fadeIn 0.3s ease-out;
}

/* DNS Query Tabs (dig section) */
.dig-query-section {
    margin-bottom: 24px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.dig-tabs {
    display: flex;
    gap: 0;
    padding: 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    flex-wrap: nowrap;
}

.dig-tab {
    padding: 10px 16px;
    background: none;
    border: none;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

.dig-tab:hover {
    color: var(--text-primary);
    background: rgba(37, 99, 235, 0.05);
}

.dig-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--card-bg);
    font-weight: 600;
}

.dig-output-container {
    position: relative;
}

.dig-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #f8f8f8;
    border-bottom: 1px solid var(--border-color);
}

.dig-command-label {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dig-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.dig-copy-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.dig-copy-btn.copied {
    color: var(--success-color);
}

.dig-output {
    padding: 16px;
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: #fafafa;
    min-height: 120px;
    max-height: 400px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.dig-loading {
    color: var(--text-muted);
    font-style: italic;
}

.dig-error {
    color: var(--error-color);
}

.dig-header {
    color: var(--text-muted);
    font-weight: 600;
}

.dig-section {
    color: var(--primary-color);
    font-weight: 600;
}

.dig-meta {
    color: var(--text-muted);
}

/* Responsive for dig tabs */
@media (max-width: 768px) {
    .dig-tabs {
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .dig-tab {
        padding: 10px 12px;
        font-size: 0.75rem;
    }
    
    .dig-output {
        font-size: 0.75rem;
        padding: 12px;
        max-height: 300px;
    }
}

/* into-search-form - 和 dig.spread.domains 一样的风格 */
.into-search-box {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.into-search-form {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.into-search-form:focus-within {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.into-search-label {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    user-select: none;
    white-space: nowrap;
    font-weight: 600;
}

.into-search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.into-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    padding: 0.5rem;
    color: var(--text-primary);
    min-width: 0;
}

.into-search-input::placeholder {
    color: var(--text-muted);
}

.into-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.into-search-btn:hover {
    background: var(--primary-dark);
}

/* 移动端响应式 */
@media (max-width: 600px) {
    .into-search-label {
        display: none;
    }
    
    .into-search-form {
        padding-left: 0.5rem;
    }
    
    .into-search-btn {
        width: 32px;
        height: 32px;
    }
}

/* Report page search box - more compact */
.report-header-row .into-search-box {
    max-width: 100%;
}

.report-header-row .into-search-form {
    padding: 0.15rem 0.15rem 0.15rem 0.75rem;
}

.report-header-row .into-search-label {
    font-size: 0.85rem;
}

.report-header-row .into-search-input {
    padding: 0.5rem 0.75rem;
}

.report-header-row .into-search-btn {
    width: 36px;
    height: 36px;
}

/* Header Hero Title */
.header-hero-title {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1;
}
