/* Dark theme (default) */
:root {
    --bg-primary: #09090b;
    --bg-secondary: #0f0f12;
    --bg-card: #151518;
    --bg-hover: #1c1c21;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #63637a;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.12);
    --accent-secondary: #10b981;
    --unavailable: #f43f5e;
    --pending: #f59e0b;
    --border: #27272a;
    --border-hover: #3f3f46;
    --radius: 12px;
    --header-bg: rgba(9, 9, 11, 0.7);
    --mesh-color-1: rgba(139, 92, 246, 0.15);
    --mesh-color-2: rgba(16, 185, 129, 0.08);
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #525252;
    --text-muted: #737373;
    --accent: #7c3aed;
    --accent-light: #8b5cf6;
    --accent-glow: rgba(124, 58, 237, 0.12);
    --accent-secondary: #059669;
    --unavailable: #dc2626;
    --pending: #d97706;
    --border: #e5e5e5;
    --border-hover: #d4d4d4;
    --header-bg: rgba(255, 255, 255, 0.9);
    --mesh-color-1: rgba(124, 58, 237, 0.08);
    --mesh-color-2: rgba(5, 150, 105, 0.05);
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -20%, var(--mesh-color-1), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, var(--mesh-color-2), transparent);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 20px 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 32px;
}

.mode-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    color: var(--text-secondary);
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.mode-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.mode-btn.active {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--text-primary);
}

.mode-btn .mode-icon {
    font-size: 20px;
}

.mode-btn > div {
    overflow: hidden;
    min-width: 0;
}

.mode-btn .mode-label {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mode-btn .mode-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search Container */
.search-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    box-sizing: border-box;
}

.search-box {
    display: flex;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 20px 40px -20px rgba(0,0,0,0.5);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}

.search-input-wrapper svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 0;
    font-size: 16px;
    color: var(--text-primary);
    font-family: 'IBM Plex Mono', monospace;
    -webkit-appearance: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.search-box button:hover {
    background-color: var(--accent-light);
}

.search-box button:active {
    background-color: var(--accent);
    transform: scale(0.98);
}

.search-box button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* TLD Section */
.tld-section {
    margin-top: 24px;
}

.tld-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tld-header-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.manage-tlds-btn {
    font-size: 12px;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.manage-tlds-btn:hover {
    text-decoration: underline;
}

.tld-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.tld-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
    cursor: pointer;
    transition: all 0.2s;
}

.tld-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.tld-btn.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

.tld-btn.custom {
    border-style: dashed;
}

/* TLD Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

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

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.add-tld-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.add-tld-form input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'IBM Plex Mono', monospace;
}

.add-tld-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.add-tld-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.add-tld-form button:hover {
    background: var(--accent-light);
}

.tld-list-section {
    margin-bottom: 16px;
}

.tld-list-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tld-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tld-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'IBM Plex Mono', monospace;
    cursor: pointer;
    transition: all 0.2s;
}

.tld-chip:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.tld-chip.selected {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

.tld-chip .toggle-indicator {
    color: var(--accent);
    font-size: 12px;
    min-width: 12px;
}

.tld-chip .remove-tld {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    margin-left: 4px;
}

.tld-chip .remove-tld:hover {
    color: var(--unavailable);
}

/* Wordoid Settings Panel */
.settings-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}

.settings-row:last-child {
    margin-bottom: 0;
}

.settings-group {
    flex: 1;
    min-width: 180px;
}

.settings-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.setting-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.setting-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.setting-btn.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

.length-buttons {
    display: flex;
    gap: 4px;
}

.length-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.length-btn:hover {
    background: var(--bg-hover);
}

.length-btn.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

/* Example Tags */
.examples {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.examples-label {
    color: var(--text-muted);
    font-size: 13px;
}

.example-tag {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'IBM Plex Mono', monospace;
    cursor: pointer;
    transition: all 0.2s;
}

.example-tag:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* Loading & Results */
.loading-section {
    padding: 60px 0;
    text-align: center;
    display: none;
}

.loading-section.active {
    display: block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 15px;
}

.results-section {
    padding: 40px 0;
    display: none;
}

.results-section.active {
    display: block;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.results-title h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.results-title h2 .keyword {
    color: var(--accent);
    font-family: 'IBM Plex Mono', monospace;
}

.results-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.results-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.filter-btn.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

/* Advanced Filters Panel */
.filters-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    display: none;
}

.filters-panel.active {
    display: block;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filters-row + .filters-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group-wide {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.filter-buttons {
    display: flex;
    gap: 6px;
}

.filter-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.filter-input:focus {
    border-color: var(--accent);
}

.filter-input::placeholder {
    color: var(--text-muted);
}

.filter-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    min-width: 160px;
}

.filter-select:focus {
    border-color: var(--accent);
}

.filter-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    min-width: 28px;
}

.reset-filters-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-filters-btn:hover {
    border-color: var(--unavailable);
    color: var(--unavailable);
}

@media (max-width: 768px) {
    .filters-panel {
        padding: 16px;
    }

    .filters-row {
        flex-direction: column;
        gap: 16px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-buttons {
        flex-wrap: wrap;
    }

    .filter-select, .filter-input {
        width: 100%;
    }

    .slider {
        width: 100%;
        flex: 1;
    }
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.domain-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.domain-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.domain-card.available {
    border-left: 3px solid var(--accent-secondary);
}

.domain-card.unavailable {
    border-left: 3px solid var(--unavailable);
    opacity: 0.6;
}

.domain-card.checking {
    border-left: 3px solid var(--pending);
}

.domain-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.domain-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    font-weight: 500;
    word-break: break-all;
    color: var(--text-primary);
}

.domain-name .keyword {
    color: var(--text-muted);
    font-weight: 400;
}

.domain-name .tld {
    color: var(--text-muted);
    font-weight: 400;
}

.domain-name .added {
    color: var(--text-primary);
    font-weight: 600;
}

.domain-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.domain-status.available {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-secondary);
}

.domain-status.unavailable {
    background: rgba(244, 63, 94, 0.15);
    color: var(--unavailable);
}

.domain-status.checking {
    background: rgba(245, 158, 11, 0.15);
    color: var(--pending);
}

.domain-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.domain-info {
    font-size: 11px;
    color: var(--text-muted);
}

.domain-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.domain-card:hover .domain-actions {
    opacity: 1;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-btn.primary {
    background: var(--accent-secondary);
    color: #fff;
}

.action-btn.primary:hover {
    filter: brightness(1.1);
}

.action-btn.secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.action-btn.secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.action-btn.check-btn {
    background: var(--pending);
    color: #000;
}

.action-btn.check-btn:hover {
    background: #fbbf24;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    margin-top: 60px;
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

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

/* Theme Selector */
.theme-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.theme-btn:hover {
    color: var(--text-secondary);
    background: var(--bg-hover);
}

.theme-btn.active {
    background: var(--bg-card);
    color: var(--accent);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.theme-btn svg {
    width: 16px;
    height: 16px;
}

.footer-right {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: left;
}

.footer-bottom p {
    margin: 4px 0;
}

.footer-bottom-line {
    margin: 0;
    display: block;
}

.footer-line-1,
.footer-line-2 {
    display: block;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* Center-align footer on mobile for index page only */
@media (max-width: 767px) {
    .index-page .footer-bottom {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .footer-bottom-line {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .footer-line-1,
    .footer-line-2 {
        display: inline;
    }

    .footer-line-1::after {
        content: ' • ';
    }
}

.error-message {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: var(--unavailable);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
    display: none;
}

.error-message.active {
    display: block;
}

/* Saved Domains Section */
.favorites-section {
    padding: 30px 0;
    display: none;
    border-top: 1px solid var(--border);
}

.favorites-section.has-items {
    display: block;
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.favorites-header h3 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.clear-favorites {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.clear-favorites:hover {
    color: var(--unavailable);
}

.favorites-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.favorite-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.favorite-chip:hover {
    border-color: var(--border-hover);
}

.favorite-chip .remove {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.favorite-chip .remove:hover {
    background: var(--unavailable);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    nav {
        display: none;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero-badge {
        display: none;
    }

    .mode-selector,
    .search-container {
        max-width: none;
        width: 100%;
    }

    .mode-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .mode-btn {
        justify-content: center;
    }

    .mode-btn .mode-icon {
        display: none;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        justify-content: center;
    }

    .settings-panel .settings-row {
        flex-direction: column;
        gap: 16px;
    }

    .results-header {
        flex-direction: column;
    }

    .domain-actions {
        opacity: 1;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
    }

    .footer-bottom .copyright-line,
    .footer-bottom .made-line {
        display: block;
    }

    .footer-bottom .copyright-sep {
        display: none;
    }
}
