/* Utility Classes */
.hidden {
    display: none !important;
}

.no-decoration {
    text-decoration: none;
    color: inherit;
}

.grid-span-3 {
    grid-column: span 3;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 2rem 0;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    flex: 1;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tagline {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Main Card */
.main-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.search-subtitle {
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.keyword-input-group {
    position: relative;
}

.keyword-input {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    border: 2px solid #e1e4e8;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.keyword-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* Word Expansion Options */
.word-expansion-options {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e1e4e8;
}

.expansion-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.expansion-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.expansion-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.expansion-checkbox span {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.max-results-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.max-results-control label {
    font-size: 1rem;
    font-weight: 500;
    color: #424245;
    white-space: nowrap;
}

.max-results-select {
    padding: 0.75rem;
    padding-right: 2.5rem;
    font-size: 1rem;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25em;
    min-width: 80px;
}

.max-results-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.max-results-select:hover {
    border-color: #667eea;
}

/* Disabled state for max results control */
.max-results-control.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.max-results-control.disabled .max-results-select {
    background-color: #f6f8fa;
    cursor: not-allowed;
}

/* Word variations preview */
.word-variations-preview {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e4e8;
}

.preview-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preview-word {
    padding: 0.25rem 0.75rem;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #333;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

/* Disabled state for form controls during checking */
.checking-in-progress input:disabled,
.checking-in-progress select:disabled {
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.checking-in-progress .option-card {
    position: relative;
}

.checking-in-progress .option-card.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.option-card {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e1e4e8;
}

.option-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25em;
    padding-right: 2.5rem;
}

.option-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.option-select:hover {
    border-color: #667eea;
}

/* TLD Checkbox Styles */
.tld-container {
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    background: white;
    min-height: 250px;
}

.tld-controls {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on mobile */
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e4e8;
}

.tld-control-btn {
    font-size: 0.9rem;
    font-weight: normal;
    color: #667eea;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid #667eea;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.tld-control-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.tld-control-btn:active {
    transform: translateY(0);
}

/* TLD Filter */
.tld-filter-container {
    position: relative;
    margin-left: auto;
    flex: 0 1 300px; /* Allow it to shrink on mobile */
}

.tld-filter-input {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.tld-filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.tld-filter-input:disabled {
    background: #f5f5f7;
    cursor: not-allowed;
    opacity: 0.6;
}

.empty-filter-message {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;
}

.tld-filter-input::placeholder {
    color: #999;
    font-size: 0.85rem;
}

/* Highlight filtered TLD matches */
.tld-checkbox-wrapper.filtered-match {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 4px;
    padding: 2px;
    margin: -2px;
}

/* Filtered category style */
.tld-category-filtered {
    background: #f8f9ff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tld-category-filtered .tld-category-title {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tld-category {
    margin-bottom: 0.75rem;
}

.tld-category-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tld-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tld-checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.tld-checkbox {
    margin-right: 0.25rem;
    cursor: pointer;
}

.tld-checkbox-label {
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

.tld-checkbox:checked + .tld-checkbox-label {
    color: #667eea;
    font-weight: 500;
}

.tld-selected-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* Category-based TLD Selector */
.tld-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 2px solid #e1e4e8;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.tld-category-tab {
    padding: 0.4rem 0.8rem;
    border: 1px solid #e1e4e8;
    background: white;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tld-category-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.tld-category-tab.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.tld-category-panel {
    display: none;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.tld-category-panel.active {
    display: block;
}

.tld-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e1e4e8;
}

.tld-category-info {
    font-size: 0.85rem;
    color: #666;
}

.tld-category-actions {
    display: flex;
    gap: 0.5rem;
}

.tld-category-btn {
    padding: 0.25rem 0.5rem;
    border: 1px solid #e1e4e8;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #666;
    transition: all 0.2s ease;
}

.tld-category-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f0f4ff;
}

.tld-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    font-size: 13px;
    font-weight: bold;
}

/* Generate Button */
.generate-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 1.5rem auto 0;
    display: block;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102,126,234,0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.progress-bar {
    height: 8px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

/* Results Section */
.results-section {
    margin-top: 3rem;
}

/* Warning notice for large result sets */
.notice-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.results-header {
    margin-bottom: 1.5rem;
}

.results-title {
    font-size: 1.3rem;
    color: #333;
    margin: 0 0 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.filter-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .filter-controls {
        justify-content: space-between;
    }
    
    .registrar-selector {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e4e8;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Registrar selector */
.registrar-selector {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 25px;
}

.registrar-selector label {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

.registrar-selector select {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: white;
    color: #333;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 1.2rem auto;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.registrar-selector select:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.registrar-selector select:focus {
    border-color: #764ba2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.result-count {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
    white-space: nowrap;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.domain-card {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e1e4e8;
    cursor: default;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Badge with integrated registrar icon */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.availability-badge.with-registrar {
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.availability-badge.with-registrar:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.availability-badge.with-registrar:active {
    transform: scale(1.02);
    animation: clickPulse 0.3s ease;
}

.availability-badge.error {
    background: #dc2626;
    color: white;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.availability-badge.error:hover {
    transform: scale(1.08);
    filter: brightness(1.2);
}

.availability-badge.error:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes clickPulse {
    0% { transform: scale(1.02); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1.02); }
}

.badge-confidence {
    font-weight: 700;
    margin-right: 0.2rem;
}

.badge-registrar-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-left: 0.2rem;
}

.domain-name {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.domain-name .keyword {
    color: #667eea;
    font-weight: 600;
}

.domain-tld {
    color: #666;
    font-size: 0.9rem;
}

.availability-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    transition: all 0.2s ease;
}

.available {
    background: #10b981;
    color: white;
}

.checking {
    background: #f59e0b;
    color: white;
}

.taken {
    background: #ef4444;
    color: white;
}

.unknown {
    background: #9ca3af;
    color: white;
}

.error {
    background: #dc2626;
    color: white;
}

.premium {
    background: #fbbf24;
    color: #713f12;
    font-weight: bold;
}

/* API Notice */
.api-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #92400e;
}

.api-notice button {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #92400e;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    line-height: 1;
}

.api-notice button:hover {
    color: #f59e0b;
}

/* Pagination controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e5e7;
}

.pagination-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 100px;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    min-width: 120px;
    text-align: center;
}

.load-more-btn {
    background: white;
    color: #667eea;
    padding: 1rem 2rem;
    border: 2px solid #667eea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 2rem auto;
    display: block;
}

.load-more-btn:hover {
    background: #667eea;
    color: white;
}

/* Results Explanation */
.results-explanation {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-explanation h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.explanation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

.explanation-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    flex: 1;
}

.explanation-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.explanation-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

.explanation-note strong {
    color: #667eea;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: white;
    opacity: 0.9;
}

/* Spinner */
.spinner {
    display: none;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.generating .spinner {
    display: inline-block;
}

/* Authentication Styles */
.google-signin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #444;
    border: 1px solid #dadce0;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.google-signin-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.google-signin-btn img {
    width: 18px;
    height: 18px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 25px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
}

.user-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dashboard-link {
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
    margin-right: 10px;
}

.dashboard-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-card {
        padding: 2rem;
        margin: 1rem;
    }

    .search-title {
        font-size: 1.5rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .option-group {
        width: 100%;
    }
    
    .option-select {
        width: 100%;
    }

    .domains-grid {
        grid-template-columns: 1fr;
    }
    
    /* TLD Controls mobile layout */
    .tld-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tld-filter-container {
        margin-left: 0;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .tld-filter-input {
        width: 100%;
    }
    
    /* Group buttons horizontally */
    .tld-controls > div:first-of-type {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }
    
    .tld-controls > div:first-of-type .tld-control-btn {
        flex: 1;
    }
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .main-card {
        padding: 1.5rem;
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .tld-container {
        min-height: auto;
    }
    
    /* Stack all buttons vertically on very small screens */
    .tld-controls > div:first-of-type {
        flex-direction: column;
    }
    
    .tld-controls > div:first-of-type .tld-control-btn {
        width: 100%;
    }
    
    .tld-control-btn {
        min-height: 44px; /* Better touch targets */
        font-size: 0.95rem;
    }
    
    .option-select {
        min-height: 44px; /* Better touch targets */
    }
    
    .search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .auth-section {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* TLD auto-detection notification animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}