:root {
    --bg-base: #f8fafc;
    --bg-panel: #ffffff;
    --bg-panel-secondary: #f1f5f9;

    --border-light: #e2e8f0;
    --border-highlight: #cbd5e1;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-danger: #ef4444;
    --text-success: #10b981;

    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.2);

    --grad-1: #3b82f6;
    --grad-2: #8b5cf6;
    --grad-3: #ec4899;

    --badge-bg: #e0e7ff;
    --badge-text: #4f46e5;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body.dark-theme {
    --bg-base: #0f172a;
    --bg-panel: #1e293b;
    --bg-panel-secondary: #273548;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-danger: #f87171;
    --text-success: #34d399;

    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-glow: rgba(96, 165, 250, 0.15);

    --badge-bg: rgba(99, 102, 241, 0.2);
    --badge-text: #c7d2fe;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.5;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
}

svg {
    display: block;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.opacity-50 {
    opacity: 0.5;
}

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

.text-danger {
    color: var(--text-danger) !important;
    filter: brightness(1.2);
}

.text-success {
    color: var(--text-success);
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-semibold {
    font-weight: 600;
}

.hidden {
    display: none !important;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2), var(--grad-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 2rem;
}

@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
        gap: 1.5rem;
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Buttons */
.btn-icon {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    color: white;
    border: none;
    border-radius: 3rem;
    padding: 0 2rem;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    height: 3.5rem;
    flex-shrink: 0;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-highlight);
    color: var(--text-main);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--bg-panel-secondary);
    border-color: var(--text-main);
}

.btn-outline.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--text-danger);
}

/* Hero Area */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* Form */
.generator-form {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.input-wrapper {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-panel-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4rem;
    padding: 0.5rem;
    padding-left: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    background: var(--bg-panel);
}

.input-main {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 1.125rem;
    font-family: inherit;
    min-width: 0;
}

.input-main::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

@media (max-width: 600px) {
    .glass-panel {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .input-wrapper {
        flex-direction: column;
        border-radius: 1rem;
        padding: 1rem;
    }

    .btn-primary {
        border-radius: 0.5rem;
        width: 100%;
    }
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}

/* Loading */
.loading-state {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
}

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

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

/* Tabs */
.tabs-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.tabs {
    display: inline-flex;
    background: var(--bg-panel-secondary);
    padding: 0.375rem;
    border-radius: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--bg-panel);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.badge {
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 0.1rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card */
.name-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.name-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-highlight);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.biz-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-right: 2rem;
    word-break: break-word;
}

.btn-star {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.25rem;
    border-radius: 50%;
}

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

.btn-star.favorited {
    color: #f59e0b;
}

.btn-star.favorited:hover {
    color: #d97706;
}

.btn-star svg {
    width: 1.5rem;
    height: 1.5rem;
}

.btn-star.favorited svg {
    fill: currentColor;
}

.biz-slogan {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.domain-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.available {
    background: var(--text-success);
    box-shadow: 0 0 8px var(--text-success);
}

.status-dot.taken {
    background: var(--text-danger);
    box-shadow: 0 0 8px var(--text-danger);
}

.status-dot.premium {
    background: var(--grad-2);
    box-shadow: 0 0 8px var(--grad-2);
}

.saved-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-main);
    color: var(--bg-base);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}