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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

.header {
    text-align: center;
    padding: 25px 20px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.input-section label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.input-section input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.suffix-section {
    margin-bottom: 15px;
}

.suffix-section label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.suffix-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suffix-btn {
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

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

.suffix-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.generate-btn {
    flex: 1;
    min-width: 180px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.random-btn, .clear-btn {
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.random-btn:hover, .clear-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.domain-list-container {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

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

.list-header h2 {
    font-size: 1.3rem;
    color: #333;
}

.copy-all-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-all-btn:hover {
    background: #e0e0e0;
}

.domain-list {
    display: grid;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 25px;
    color: #888;
}

.domain-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.2s;
}

.domain-card:hover {
    background: #f0f0f0;
}

.domain-name {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.domain-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0;
}

.copy-btn {
    background: #4CAF50;
    color: white;
}

.copy-btn:hover {
    background: #45a049;
}

.copy-btn.copied {
    background: #2e7d32;
}

.query-btn {
    background: #2196F3;
    color: white;
}

.query-btn:hover {
    background: #1976D2;
}

.action-btn::before {
    font-family: sans-serif;
    font-size: 14px;
}

.copy-btn::before {
    content: 'Copy';
}

.copy-btn.copied::before {
    content: 'Copied';
}

.query-btn::before {
    content: 'Search';
}

.footer {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    color: white;
}

.ad-slots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.ad-slot {
    width: calc(33.33% - 8px);
    min-width: 120px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.site-info {
    max-width: 600px;
    margin: 15px auto 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: left;
}

.site-info h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #fff;
}

.site-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .main {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .generate-btn {
        min-width: 100%;
    }
    
    .suffix-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .domain-card {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .domain-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .ad-slots {
        flex-direction: column;
        align-items: center;
    }
    
    .ad-slot {
        width: 100%;
        max-width: 300px;
    }
}