* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #555 #1a1a1a;
}

/* Global scrollbar styling - WebKit browsers */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 20px;
    color: #e5e5e5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    padding: 50px 60px;
    border: 1px solid #2a2a2a;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-size: 2.5em;
    color: #e5e5e5;
    margin-bottom: 10px;
}

.subtitle {
    color: #999;
    font-size: 1.1em;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: #252525;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #333;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    background: #2a2a2a;
}

.stat-label {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #e5e5e5;
}

.stat-value.available {
    color: #065f46;
}

.stat-value.taken {
    color: #9a3412;
}

.stat-value.for-sale {
    color: #1e40af;
}

.stat-value.sold {
    color: #991b1b;
}

.stat-value.auction {
    color: #0c4a6e;
}

.input-section {
    margin-bottom: 40px;
}

.input-section h2 {
    margin-bottom: 20px;
    color: #e5e5e5;
    font-size: 1.5em;
}

.input-container {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid #333;
    border-radius: 12px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
    background: #1a1a1a;
    color: #e5e5e5;
    line-height: 1.6;
}

textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #999;
    font-size: 0.95em;
}

.username-count {
    font-weight: 500;
}

.status-text {
    color: #999;
    font-weight: 500;
}

.check-button, .stop-button {
    width: 100%;
    padding: 18px;
    background: #2a2a2a;
    color: white;
    border: 1px solid #444;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    margin-top: 5px;
}

.check-button:not(:disabled):hover {
    background: #333;
    border-color: #555;
}

.check-button:not(:disabled):active {
    transform: translateY(0);
}

.check-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.stop-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stop-button:hover {
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.disclaimer {
    background: #2a2419;
    border-left: 4px solid #f59e0b;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid #3a2f1f;
}

.disclaimer strong {
    display: block;
    margin-bottom: 10px;
    color: #f59e0b;
}

.disclaimer ul {
    list-style-position: inside;
    color: #d4a574;
}

.disclaimer li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.results-section {
    margin-top: 50px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-section h2 {
    margin-bottom: 0;
    color: #e5e5e5;
    font-size: 1.5em;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 15px;
}

.sort-label {
    color: #e5e5e5;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.sort-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.sort-group {
    display: flex;
    gap: 6px;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 2px;
    background: #1a1a1a;
}

.sort-button {
    padding: 10px 20px;
    background: #2a2a2a;
    color: #e5e5e5;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    white-space: nowrap;
}

.sort-button:hover {
    background: #333;
    border-color: #555;
}

.sort-button.active {
    background: #4a9eff;
    border-color: #4a9eff;
    color: #ffffff;
}

.sort-button.active:hover {
    background: #5aa8ff;
    border-color: #5aa8ff;
}

.sort-group .sort-button {
    border: none;
    margin: 0;
    padding: 8px 16px;
}

.sort-group .sort-button.active {
    background: #4a9eff;
    border-color: #4a9eff;
}

.search-options {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 15px;
}

.search-label {
    color: #e5e5e5;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.search-input {
    flex: 1;
    padding: 12px 18px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #e5e5e5;
    font-size: 1em;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #4a9eff;
}

.search-input::placeholder {
    color: #666;
}

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

.export-button {
    padding: 10px 20px;
    background: #2a2a2a;
    color: #e5e5e5;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.export-button:hover {
    background: #333;
    border-color: #555;
}

.export-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: #e5e5e5;
    border: none;
    text-align: left;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #333;
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid #333;
}

.filters-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-section {
    background: #252525;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-label {
    color: #e5e5e5;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 0.3px;
}

.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e5e5e5;
    font-size: 0.95em;
    cursor: pointer;
    user-select: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.filter-checkbox:hover {
    background: rgba(255, 255, 255, 0.05);
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4a9eff;
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 18px;
}

.filter-range span {
    color: #999;
    font-size: 0.95em;
}

.filter-input {
    padding: 12px 18px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #e5e5e5;
    font-size: 0.95em;
    width: 140px;
    transition: border-color 0.2s;
    /* Remove spinner arrows */
    -moz-appearance: textfield;
}

.filter-input::-webkit-outer-spin-button,
.filter-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filter-input:focus {
    outline: none;
    border-color: #4a9eff;
}


.results-container {
    min-height: 500px;
    max-height: 800px;
    overflow-y: auto;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
}

.empty-state {
    text-align: center;
    color: #999;
    font-size: 1.3em;
    margin-bottom: 15px;
    margin-top: auto;
    padding-top: 100px;
}

.empty-state-subtitle {
    text-align: center;
    color: #666;
    font-size: 1em;
    margin-bottom: auto;
    padding-bottom: 100px;
}

.results-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.result-card {
    background: #252525;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: #444;
    background: #2a2a2a;
}

.card-section {
    flex: 1;
    min-width: 0;
    padding: 0 15px;
}

.card-section:first-child {
    padding-left: 0;
}

.card-section:last-child {
    padding-right: 0;
}

.card-label {
    font-size: 0.9em;
    color: #999;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    color: #e5e5e5;
    font-size: 1.05em;
    line-height: 1.6;
}

.card-username .card-content {
    font-weight: 600;
    font-size: 1.2em;
}


.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: normal;
    line-height: 1.4;
}

.status-badge.available {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.taken {
    background: #fed7aa;
    color: #9a3412;
}

.status-badge.for-sale {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.on-auction {
    background: #e0f2fe;
    color: #0c4a6e;
}

.status-badge.invalid {
    background: #fee2e2;
    color: #991b1b;
}

.warning-text {
    color: #fbbf24;
    font-size: 0.85em;
    margin-left: 8px;
    font-weight: 500;
}

.invalid-link {
    color: #999;
    font-style: italic;
}

.status-badge.sold {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.error {
    background: #e5e7eb;
    color: #6b7280;
}

.username-link {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
}

.username-link:hover {
    text-decoration: underline;
    color: #5aa8ff;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #4a9eff;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1000;
}

.scroll-to-top:hover {
    background: #5aa8ff;
}

.scroll-to-top:active {
    background: #4a9eff;
}

.scroll-to-top.show {
    display: flex;
}


/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.checking {
    animation: pulse 2s ease-in-out infinite;
}

