

body {
    padding: 1rem;
}

.container {
    max-width: 1200px;
    margin: 1rem auto;
    background: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.site-header .logo-img {height: 92px!important;}

 
form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

input[type="text"] {
    flex-grow: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#domain-form button,
.toggle-registrars-btn {
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

 
#domain-form button:hover:not(:disabled),
.toggle-registrars-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

 
#domain-form button:disabled {
    background-color: #aab8c5;
    cursor: not-allowed;
}

 
.table-container {
    overflow-x: auto;
}

table.lsatcheck {
    width: 100%;
    border-collapse: collapse;
}

table.lsatcheck th , td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
    word-break: break-all;
}

table.lsatcheck th  {
    background-color: #f8f9fa;
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
}

table.lsatcheck td  a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    word-break: normal;
}

table.lsatcheck td  a:hover {
    text-decoration: underline;
}

h1 { margin-top: 0;}


/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    text-align: center;
     max-width: 1200px;
    margin: 1rem auto;
}

.hero-content h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2rem;
    gap: 10px;
}

.hero-search input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
}

.hero-search button {
    padding: 15px 30px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-search button:hover {
    background: #ff5252;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

 
 

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.action-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}
 
.status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}
.status-completed { background-color: #d4edda; color: #155724; }
.status-processing { background-color: #fff3cd; color: #856404; }
.status-failed { background-color: #f8d7da; color: #721c24; }
.status-pending { background-color: #e2e3e5; color: #383d41; }

.status-cell {
    white-space: nowrap;
}
.time-ago {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

 
.pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
}
.page-item a, .page-item span {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--primary-color);
    text-decoration: none;
    background-color: var(--card-background);
    border-left: 1px solid var(--border-color);
    transition: background-color 0.2s;
}
.page-item:first-child a {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-left: 0;
}
.page-item:last-child a {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
.page-item a:hover {
    background-color: #e9ecef;
}
.page-item.active a {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    cursor: default;
}
.page-item.disabled a, .page-item.disabled span {
    color: var(--text-light);
    pointer-events: none;
    cursor: default;
}


 

 
.view-switch {
    display: inline-block;
    vertical-align: middle;  
    text-decoration: none;
    font-size: 0.75rem;     
    font-weight: 600;       
    color: #444;            
    background-color: #f0f2f5;  
    padding: 6px 14px;      
    border-radius: 20px;    
    margin-left: 15px;      
    transition: all 0.2s ease-in-out; 
}

 
.view-switch:hover {
    background-color: #e4e6eb;  
    color: #111;               
    transform: translateY(-1px); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.08); 
} 


.registrars-section {
    margin-top: 3rem;
}
.registrars-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}
.registrars-table th, .registrars-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid  var(--border-color);
     white-space: nowrap;
    overflow: hidden;
}
.registrars-table th {
    background-color:  var(--background-color); 
}
.registrars-table .star-rating {
    color: #ffc107;
    white-space: nowrap;
}
.registrars-table a {
    color: var(--primary-color) 
    text-decoration: none;
    font-weight: 500;
}
.registrars-table a:hover {
    text-decoration: underline;
}

.hidden-registrar {
    display: none;
}

.registrars-toggle-container {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.toggle-registrars-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.toggle-registrars-btn:hover {
    background-color: var(--primary-color);;
    border-color: #999;
    color: #fff;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.toggle-registrars-btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

.registrars-table {
    margin-bottom: 0;
}

/* Emotions Section */
.emotions-section {
    margin-bottom: 3rem;
}

.emotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 2fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.emotion-category {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 15px;
}

.emotion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.emotion-header .emoji {
    font-size: 2rem;
}

.top-sites {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-link {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.site-link:hover {
    color: var(--primary-color);
}

.count {
    color: var(--text-light);
    font-size: 0.9rem;
} 
.emotion-positive {
    background-color: #e8f5e9;  
    border-left: 4px solid #4caf50;  
}

.emotion-neutral {
    background-color: #f5f5f5;  
    border-left: 4px solid #9e9e9e;  
}

.emotion-negative {
    background-color: #ffebee;  
    border-left: 4px solid #f44336;  
}

/* Age Chart */
.custom-chart {
   
    padding: 1rem;
}

.chart-area {
    display: flex;
   flex-direction: row;     
  align-items: flex-end;     
  justify-content: space-around;
    height: 350px;        
    border-left: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 10px;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
     align-items: flex-end;     
    justify-content: center;
    position: relative;  
     height: 100%;
}

.chart-bar {
    width: 70%;
    border-radius: 4px 4px 0 0;
    transition: all 0.4s ease-out;  
    height: var(--bar-height, 0%);
  
    background: linear-gradient(to top, rgba(118, 75, 162, 0.7), rgba(102, 126, 234, 0.7));
  
    background-size: 100% 350px;
   
    background-position: bottom;
    background-repeat: no-repeat;
}

.chart-bar:hover {
  
    filter: brightness(120%);
 
}

 
.chart-tooltip {
    position: absolute;
    bottom: 105%;  
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;  
}

.chart-bar-wrapper:hover .chart-tooltip {
    opacity: 1;
    visibility: visible;
}

 
.chart-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    padding: 0 10px;
}

.chart-label {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}





.tables-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 2rem;  
    
    align-items: start;  
}

 
.tables-grid-wrapper section {
    width: 100%;
}
.update-info {margin-top: 20px; font-size: 0.9rem; color: #7f8c8d; text-align: right; font-style: italic;}


 .analytics-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px; margin-top: 30px;   
    flex-wrap: wrap;
    position: relative;
}

.nav-pill {
    background-color: #ffffff;
    color: #555;
    padding: 10px 24px;
    border-radius: 50px;  
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.2s ease-in-out;
}

.nav-pill:hover {
    background-color: #f8f9fa;
    color: var(--accent-color, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

 
.nav-pill.active {
    background-color: var(--accent-color, #007bff);
    color: #ffffff;
    border-color: var(--accent-color, #007bff);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
/* --- Research Popover --- */
.nav-popover-wrap {
    position: relative;
      display: inline-flex;
}
.nav-popover-wrap .nav-pill-btn {
    white-space: nowrap;  
}

.nav-pill-btn {
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-pill-arrow {
    font-size: 11px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.nav-pill-btn[aria-expanded="true"] .nav-pill-arrow {
    transform: rotate(180deg);
}

.nav-pill-btn[aria-expanded="true"] {
    background-color: var(--accent-color, #007bff);
    color: #ffffff;
    border-color: var(--accent-color, #007bff);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.research-popover {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 10px;
    width: 300px;
    z-index: 100;
    border: 1px solid rgba(0,0,0,0.06);
}

.research-popover.open {
    display: block;
}

.research-item {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.research-item:hover {
    background-color: #f5f7ff;
}

.research-item__title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-color, #007bff);
    margin-bottom: 3px;
}

.research-item__desc {
    display: block;
    font-size: 12px;
    color: var(--text-light, #888);
    line-height: 1.4;
}


 
.about-project-section p {
    font-size: 1.05rem;
}

 
.faq-section {
    margin-bottom: 3rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-item summary {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    list-style: none;  
    outline: none;
}

 
.faq-item summary::-webkit-details-marker {
    display: none;
}

 
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}

.faq-answer {
    padding: 1.2rem 1.5rem;
    background-color: #fcfcfc;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

 


@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr; 
    }
    .category-card {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
.nav-popover-wrap {
        position: static; 
    }

   
    .research-popover {
        position: absolute;
        top: calc(100% + 15px); 
        left: 50%;
        transform: translateX(-50%);  
        width: 90%;  
        max-width: 320px;
        z-index: 100;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);  
    }

        .faq-item summary {
        font-size: 1rem;
        padding: 1rem 2.5rem 1rem 1rem;  
    }
    .faq-answer {
        font-size: 0.9rem;
        padding: 1rem;
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr; 
    }
}

@media screen and (max-width: 768px) {



    .container { padding: 1.5rem; }
    .pagination {font-size: 0.8em;}
    .page-item a, .page-item span {padding: 0.3rem 0.5rem;}
 
    h1 { font-size: 1.8rem; margin-top: 2rem;}
.hero-stats {
     
     display: flex;
  flex-direction: column;
    justify-content: center;
    gap: 1rem;
     
}

    .registrars-table {
        display: block;
        overflow-x: auto; 
    }
    table.lsatcheck thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    table.lsatcheck tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 2px 4px var(--shadow-color);
    }
    table.lsatcheck td {
        display: block;
        text-align: right;
        font-size: 0.9rem;
        border-bottom: 1px solid #f2f2f2;
        position: relative;
        padding-left: 50%;
    }
    table.lsatcheck td:last-child {
        border-bottom: 0;
    }
    table.lsatcheck td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: calc(50% - 2rem);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: var(--text-color);
    }
    table.lsatcheck td[data-label="Status"] {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        text-align: right;
    }
    table.lsatcheck td[data-label="Status"] .time-ago {
        margin-left: auto;
    }


    .emotion-header .emoji {font-size: 1em} 
    .emotion-header h3 {font-size: 0.7em}
    .site-link {font-size: 0.8em}
    .emotions-grid {     grid-template-columns: repeat(auto-fit, minmax(150px, 2fr)); }
}
 
@media screen and (max-width: 992px) {
    .tables-grid-wrapper {
        grid-template-columns: 1fr;  
        gap: 3rem; 
    }
}