:root.tools-whois {
    --primary: #FF6B35;
    --primary-dark: #E55100;
    --primary-light: #FFA573;
    --accent: linear-gradient(135deg, #FF6B35 0%, #FF9558 100%);
    --accent-hover: #E55100;
    --gradient-main: linear-gradient(135deg, #FF6B35 0%, #FF9558 100%);
    --gradient-2: linear-gradient(135deg, #FF9558 0%, #FFB088 100%);
    --text-primary: #2D1810;
    --text-secondary: #6b7280;
    --text-dark: #1f2937;
    --bg-light: #f9fafb;
    --border-light: #e5e7eb;
    --primary-bg-1: rgba(255, 107, 53, 0.03);
    --primary-bg-2: rgba(255, 149, 88, 0.03);
    --hero-filter: drop-shadow(0 4px 20px rgba(255, 107, 53, 0.2));
    --focus-shadow: 0 25px 50px rgba(255, 107, 53, 0.12), inset 0 0 0 2px rgba(255, 107, 53, 0.08);
}

.whois-card {
    background: #fff;
    border-radius: var(--radius-lg, 20px);
    padding: 24px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
    border: 1px solid var(--border-light);
}

.section-title {
    font-size: var(--font-size-base, 1rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.whois-header {
    margin-bottom: 16px;
}

.whois-domain-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.whois-domain {
    font-size: var(--font-size-2xl, 1.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    word-break: break-all;
}

.whois-cta-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-base, 0.3s);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    color: #fff;
}

.whois-cta-btn.buy {
    background: var(--global-btn-price, linear-gradient(135deg, #f59e0b, #d97706));
}

.whois-cta-btn.buy:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.whois-cta-btn.backorder {
    background: var(--global-btn-expired, linear-gradient(135deg, #ef4444, #dc2626));
}

.whois-cta-btn.backorder:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.whois-cta-btn.offer {
    background: var(--global-btn-offer, linear-gradient(135deg, #8b5cf6, #7c3aed));
}

.whois-cta-btn.offer:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.whois-cta-btn.register {
    background: var(--global-btn-register, linear-gradient(135deg, #10b981, #059669));
}

.whois-cta-btn.register:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.whois-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.whois-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: var(--font-size-xs, 0.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.whois-badge.registered {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
}

.whois-badge.available {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.whois-badge.new {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.whois-badge.aged {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.whois-badge.expiring {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.whois-badge.hold {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.whois-badge.pending-delete {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.whois-badge.redemption {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.whois-badge.expired {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.whois-badge.transfer {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.whois-badge.locked {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.whois-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--text-secondary);
}

.meta-item {
    display: inline-flex;
    align-items: center;
}

.meta-item strong {
    color: var(--text-dark);
    margin-left: 4px;
}

.meta-item:not(:last-child)::after {
    content: '|';
    margin-left: 8px;
    color: #d1d5db;
}

.whois-core {
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius, 12px);
}

.whois-core-top {
    display: flex;
    gap: 12px;
}

.core-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.core-item.registrar {
    flex: 2;
}

.core-item.created,
.core-item.expires {
    flex: 1;
    text-align: center;
}

.core-label {
    font-size: var(--font-size-xs, 0.75rem);
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.core-value {
    font-size: var(--font-size-base, 1rem);
    font-weight: 700;
    color: var(--text-primary);
}

.whois-core-status {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.status-label {
    font-size: var(--font-size-xs, 0.75rem);
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    flex-shrink: 0;
    padding-top: 3px;
}

.status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.status-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: var(--font-size-xs, 0.75rem);
    font-weight: 600;
    color: var(--text-secondary);
}

.status-tag.status-hold {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-tag.status-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.status-tag.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-tag.status-locked {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.status-tag.status-pending {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.whois-ns-section {
    margin-bottom: 16px;
}

.ns-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ns-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    gap: 12px;
}

.ns-name {
    flex: 1;
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-all;
}

.ns-count {
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.ns-count-loading {
    font-size: var(--font-size-sm, 0.875rem);
    color: #9ca3af;
    font-style: italic;
}

.ns-count-na {
    font-size: var(--font-size-sm, 0.875rem);
    color: #9ca3af;
}

.ns-form {
    display: inline;
    margin: 0;
}

.ns-reverse-btn {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient-main);
    color: #fff;
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-base, 0.3s);
    white-space: nowrap;
}

.ns-reverse-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.whois-prefix-section {
    margin-bottom: 16px;
}

.whois-prefix-section .section-title {
    margin-top: 16px;
}

.prefix-box {
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius, 12px);
}

.prefix-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.prefix-stat-item {
    flex: 1;
    text-align: center;
}

.prefix-stat-label {
    font-size: var(--font-size-xs, 0.75rem);
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.prefix-stat-value {
    font-size: var(--font-size-base, 1rem);
    font-weight: 700;
    color: var(--text-primary);
}

.prefix-examples-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.prefix-examples {
    flex: 1;
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--text-secondary);
}

.prefix-examples-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.prefix-examples-list {
    color: var(--text-dark);
    font-weight: 600;
}

.prefix-view-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 8px 16px;
    background: var(--gradient-main);
    color: #fff;
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-base, 0.3s);
    white-space: nowrap;
}

.prefix-view-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.whois-tools {
    padding-top: 16px;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--global-btn-secondary, rgba(107,114,128,0.08));
    border: 2px solid var(--border-light);
    color: var(--text-primary);
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-base, 0.3s);
    cursor: pointer;
}

.tool-btn:hover {
    border-color: var(--primary);
    background: var(--gradient-main);
    color: #fff;
    transform: scale(1.02);
}

.whois-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--error, #ef4444);
    font-size: var(--font-size-lg, 1.1rem);
    font-weight: 600;
}
.prefix-domain-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.prefix-domain-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.status-tag-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-tag-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.core-value-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.core-value-link:hover {
    color: var(--primary);
}

.status-tag-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-tag-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.timeline-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.timeline-dates {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.timeline-date {
    text-align: center;
}

.timeline-date.start {
    text-align: left;
}

.timeline-date.end {
    text-align: right;
}

.timeline-date-label {
    font-size: var(--font-size-xs, 0.75rem);
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-date-value {
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--font-size-xs, 0.75rem);
    font-weight: 700;
}

.timeline-status.safe {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.timeline-status.attention {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.timeline-status.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.timeline-status.critical {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.timeline-status.expired {
    background: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

.timeline-status-icon {
    font-size: 12px;
}

.timeline-status-label {
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.timeline-status-time {
    opacity: 0.8;
    font-weight: 600;
}

.timeline-bar {
    position: relative;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: visible;
}

.timeline-progress {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.timeline-progress.safe {
    background: linear-gradient(90deg, #10b981, #059669);
}

.timeline-progress.attention {
    background: linear-gradient(90deg, #10b981, #f59e0b);
}

.timeline-progress.warning {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.timeline-progress.critical {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.timeline-progress.expired {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.timeline-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.ns-count-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ns-count {
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
    cursor: default;
}

.ns-usage-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.ns-usage-tag.ns-major {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
}

.ns-usage-tag.ns-high {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.ns-usage-tag.ns-medium {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.ns-usage-tag.ns-low {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.ns-reverse-btn {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient-main);
    color: #fff;
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ns-reverse-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}
.prefix-stats-center {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 16px 0;
}

.prefix-stat-item {
    text-align: center;
}

.prefix-stat-value {
    font-size: var(--font-size-xl, 1.3rem);
    font-weight: 800;
    color: var(--primary);
}

.prefix-stat-label {
    font-size: var(--font-size-xs, 0.75rem);
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.prefix-footer {
    text-align: center;
    padding-top: 12px;
}
.highlight-prefix {
    color: var(--primary);
    font-weight: 800;
}
@media (max-width: 768px) {
    .ns-count-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
@media (max-width: 768px) {
    .timeline-dates {
        flex-direction: column;
        gap: 12px;
    }

    .timeline-date.start,
    .timeline-date.end {
        text-align: center;
    }

    .timeline-status {
        order: -1;
    }
}


@media (max-width: 768px) {
    .whois-card {
        margin: 12px;
        padding: 16px;
    }

    .whois-domain-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .whois-domain {
        font-size: var(--font-size-xl, 1.3rem);
    }

    .whois-meta-row {
        flex-direction: column;
        gap: 4px;
    }

    .meta-item:not(:last-child)::after {
        display: none;
    }

    .whois-core-top {
        flex-direction: column;
        gap: 12px;
    }

    .core-item.registrar,
    .core-item.created,
    .core-item.expires {
        flex: none;
        text-align: left;
    }

    .whois-core-status {
        flex-direction: column;
    }

    .ns-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ns-name {
        width: 100%;
    }

    .ns-form {
        width: 100%;
    }

    .ns-reverse-btn {
        width: 100%;
        text-align: center;
    }

    .prefix-stats {
        flex-direction: column;
        gap: 8px;
    }

    .prefix-stat-item {
        text-align: left;
    }

    .prefix-examples-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .prefix-view-btn {
        width: 100%;
        text-align: center;
    }

    .tools-grid {
        gap: 8px;
    }

    .tool-btn {
        padding: 6px 12px;
        font-size: var(--font-size-xs, 0.75rem);
    }
}