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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 14px;
}

.card {
    background: #111;
    border-radius: 24px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    border: 1px solid #2c2c2c;
}

h2 {
    font-size: 1.3rem;
    color: #10B981;
    margin-bottom: 4px;
    text-align: center;
}

.tagline {
    color: #999;
    font-size: 0.75rem;
    margin-bottom: 20px;
    text-align: center;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

label {
    display: block;
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 6px;
    font-weight: 600;
}

select, textarea {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #2c2c2c;
    border-radius: 12px;
    color: #f0f2f5;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 14px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

select:focus, textarea:focus {
    outline: none;
    border-color: #10B981;
}

button {
    background: #10B981;
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 36px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    width: 100%;
    margin-top: 6px;
    transition: all 0.3s;
}

button:hover {
    background: #059669;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button.secondary {
    background: #2c2c2c;
    color: #fff;
    margin-top: 8px;
}

.result-card {
    background: #0a0a0a;
    border: 1px solid #2c2c2c;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}

.result-card img {
    width: 100%;
    border-radius: 10px;
    margin: 8px 0;
    border: 1px solid #2c2c2c;
    max-height: 250px;
    object-fit: cover;
}

.result-card img[src=""] {
    display: none;
}

.pest-name {
    color: #10B981;
    font-weight: 700;
    font-size: 1rem;
}

.pest-desc {
    color: #aaa;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 8px 0;
}

.advice-box {
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid #10B981;
    padding: 10px;
    border-radius: 0 8px 8px 0;
    margin-top: 8px;
}

.advice-box p {
    color: #ccc;
    font-size: 0.8rem;
    line-height: 1.5;
}

.match-btn {
    background: transparent;
    border: 1px solid #10B981;
    color: #10B981;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    width: auto;
    margin-top: 8px;
}

.match-btn:hover {
    background: #10B981;
    color: #000;
}

.match-btn.matched {
    background: #10B981;
    color: #000;
}

.status {
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    margin-top: 12px;
}

.spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 2px solid #2c2c2c;
    border-top: 2px solid #10B981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 10px auto;
}

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

footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.6rem;
    color: #444;
}

footer a {
    color: #10B981;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.7rem;
    color: #666;
}

.breadcrumb span {
    color: #10B981;
    cursor: pointer;
}

.breadcrumb span:hover {
    text-decoration: underline;
}

.results-info {
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 14px;
}

.wiki-link {
    color: #10B981;
    font-size: 0.7rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}

.wiki-link:hover {
    text-decoration: underline;
}

.control-methods {
    background: #0a0a0a;
    border: 1px solid #2c2c2c;
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px;
}

.control-methods p {
    color: #ccc;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.warning-box {
    padding: 10px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    margin-top: 12px;
}

.warning-box p {
    color: #f59e0b;
    font-size: 0.75rem;
}
