/* WhoisPulse Clean Modern Design System */

:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-dark: #111827;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    --primary-orange: #f97316;
    --primary-orange-hover: #ea580c;
    --primary-orange-light: #fff7ed;
    --primary-orange-border: #ffedd5;

    --blue-link: #2563eb;
    --green-btn: #16a34a;
    --red-sale: #dc2626;

    --radius-card: 8px;
    --radius-sm: 6px;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

a {
    color: var(--blue-link);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-orange);
}

/* Header */
.site-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 68px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.brand-logo-group {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.4px;
}

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

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

.logo-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 34px;
    margin-top: -2px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #374151;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 4px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-orange);
}

.nav-with-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-new-badge {
    background-color: #fff7ed;
    color: var(--primary-orange);
    border: 1px solid #ffedd5;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search-form {
    display: flex;
}

.header-search-group {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.header-search-input {
    border: none;
    padding: 7px 12px;
    font-size: 0.88rem;
    width: 170px;
    color: var(--text-dark);
    outline: none;
}

.header-search-input:focus {
    width: 220px;
    transition: width 0.2s ease;
}

.btn-header-search {
    background-color: var(--primary-orange);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-header-search:hover {
    background-color: var(--primary-orange-hover);
}

.header-icon-btn {
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: var(--radius-sm);
    position: relative;
}

.header-icon-btn:hover {
    color: var(--text-dark);
    background-color: #f3f4f6;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px;
}

.mobile-nav {
    display: none;
    background-color: #ffffff;
    padding: 14px 20px;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: #374151;
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 24px 0 48px 0;
}

.page-container {
    max-width: 1240px;
}

/* Result Header Bar */
.result-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.result-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-domain-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.btn-make-offer {
    /* background-color: #fff1f2;
    border: 1px solid #fecdd3;
    color: var(--primary-orange);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 16px;
    cursor: pointer; */
    display: none;
}

.btn-make-offer:hover {
    background-color: #ffe4e6;
}

.result-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.updated-time-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.icon-spin-subtle {
    color: var(--blue-link);
    display: none;
}

.btn-hard-refresh {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-hard-refresh:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background-color: #fff7ed;
}

.btn-hard-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Two Column Layout */
.whois-two-column-layout {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 28px;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    margin-bottom: 20px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

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

.card-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-title h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.icon-orange-square {
    width: 26px;
    height: 26px;
    background-color: #fff7ed;
    border: 1px solid #ffedd5;
    color: var(--primary-orange);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.card-header-actions {
    display: flex;
    gap: 8px;
}

.btn-card-action {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: #374151;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-card-action:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.card-body-rows {
    display: flex;
    flex-direction: column;
}

.whois-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.92rem;
}

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

.whois-label {
    color: var(--text-muted);
    font-weight: 400;
}

.whois-val {
    color: var(--text-dark);
    font-weight: 400;
    word-break: break-word;
}

.font-medium {
    font-weight: 600;
}

.word-break-all {
    word-break: break-all;
}

.ns-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Related Domain Names Section */
.related-domains-section {
    margin-top: 36px;
    margin-bottom: 24px;
}

.related-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: lowercase;
}

.related-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0 16px 0;
}

.related-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.related-link {
    font-size: 0.9rem;
    color: var(--blue-link);
}

.related-link:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

/* Sidebar */
.sidebar-box {
    padding: 16px 20px;
}

.sidebar-box-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.similar-domains-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.similar-domain-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.similar-domain-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.btn-orange-sm {
    background-color: var(--primary-orange);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.15s ease;
}

.btn-orange-sm:hover {
    background-color: var(--primary-orange-hover);
    color: #ffffff;
}

/* Advertisements */
.ad-card {
    border-radius: var(--radius-card);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Ad 1: .space */
.ad-space {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    padding: 28px 20px 20px 20px;
    text-align: center;
}

.ad-ribbon-sale {
    position: absolute;
    top: 12px;
    right: -24px;
    background-color: #f59e0b;
    color: #000000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 28px;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.ad-tld-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 12px;
}

.ad-price-group {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ad-price-old {
    text-decoration: line-through;
    opacity: 0.75;
    font-size: 1.1rem;
}

.ad-price-new {
    font-size: 2rem;
    font-weight: 900;
}

.btn-ad-green {
    background-color: var(--green-btn);
    color: #ffffff;
    border: none;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 10px 28px;
    border-radius: 20px;
    cursor: pointer;
    width: 80%;
}

.btn-ad-green:hover {
    background-color: #15803d;
}

.ad-subtext {
    font-size: 0.72rem;
    opacity: 0.8;
    margin-top: 10px;
}

/* Ad 2: .site */
.ad-site {
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    padding: 16px;
    text-align: center;
}

.ad-site-tag {
    color: #dc2626;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.ad-site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 2.2rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 12px;
}

.site-icon-box {
    width: 28px;
    height: 28px;
    border: 3px solid #7c3aed;
    border-radius: 6px;
    display: inline-block;
}

.ad-site-price {
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.site-green-text {
    color: #16a34a;
}

.strike-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.ad-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #d1d5db;
    border-radius: 50%;
}

.dot.active {
    background-color: var(--primary-orange);
    width: 8px;
    height: 8px;
}

/* Ad 3: AI Website Builder */
.ad-builder {
    background-color: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 20px;
}

.ad-builder-title {
    color: #c2410c;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.ad-builder-heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 16px;
}

.btn-builder-starts {
    background-color: var(--primary-orange);
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.btn-builder-starts:hover {
    background-color: var(--primary-orange-hover);
}

.builder-device-mockup {
    width: 100%;
    max-width: 140px;
    margin-top: 12px;
    display: block;
    margin-left: auto;
    opacity: 0.8;
}

/* Home Section */
.hero-section {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 48px 0 56px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.hero-search-box {
    max-width: 640px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.hero-search-input {
    flex: 1;
    border: none;
    font-size: 1rem;
    padding: 10px 14px;
    outline: none;
    color: var(--text-dark);
}

.btn-orange {
    background-color: var(--primary-orange);
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-orange:hover {
    background-color: var(--primary-orange-hover);
}

.hero-examples {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.example-chip {
    color: var(--blue-link);
    background-color: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.example-chip:hover {
    background-color: var(--primary-orange);
    color: #ffffff;
}

/* Tools Grid */
.section-tools {
    padding: 48px 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-desc {
    color: var(--text-muted);
}

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

.tool-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 24px;
}

.tool-icon {
    margin-bottom: 14px;
}

.icon-orange {
    color: var(--primary-orange);
}

.tool-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.tool-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.tool-link {
    font-weight: 600;
    font-size: 0.88rem;
}

/* Footer */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 48px 0 24px 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.footer-heading {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--text-dark);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-socials a {
    color: var(--text-muted);
}

.footer-socials a:hover {
    color: var(--text-dark);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background-color: #1f2937;
    color: #ffffff;
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
}

.raw-pre {
    background-color: #111827;
    color: #38bdf8;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 480px;
    overflow-y: auto;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background-color: #1f2937;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.25s ease;
    border-left: 4px solid var(--primary-orange);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Domain Available Page Styles */
.badge-domain-available {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.available-banner-card {
    border-top: 4px solid #16a34a !important;
    padding: 28px 24px;
}

.available-banner-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.available-check-icon {
    width: 54px;
    height: 54px;
    background-color: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.available-heading {
    font-size: 1.45rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.available-subtext {
    color: #4b5563;
    font-size: 0.95rem;
}

.available-cta-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 0.95rem;
}

.row-selected {
    background-color: #fff7ed;
}

.tag-current-searched {
    background-color: #ffedd5;
    color: #c2410c;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.flex-space-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price-val {
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
}

.features-grid-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
}

.feature-item-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 6px;
}

.feature-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.feature-box-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.feature-box-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

.raw-snippet-box {
    padding: 16px 20px;
}

.raw-snippet-text {
    background-color: #0f172a;
    color: #38bdf8;
    padding: 14px;
    border-radius: 6px;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.82rem;
    max-height: 160px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Responsive */
@media (max-width: 992px) {
    .whois-two-column-layout {
        grid-template-columns: 1fr;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .result-domain-title {
        font-size: 1.6rem;
    }

    .whois-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-search-input {
        width: 120px;
    }

    .header-search-input:focus {
        width: 150px;
    }
}