* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: #111827;
    border-bottom: 1px solid #1f2937;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 48px;
    height: 48px;
}

.tagline {
    margin: 0.2rem 0 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
}

.layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    padding: 2rem 3rem;
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.preview-card {
    min-height: 320px;
}

.drop-zone {
    position: relative;
    border: 2px dashed #334155;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    color: #cbd5f5;
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
}

.drop-zone.active {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.drop-zone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

button {
    background: #22c55e;
    color: #0f172a;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button.secondary {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.3);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.info-grid .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
}

.status {
    margin-top: 1rem;
    color: #94a3b8;
}

.tool-card h2 {
    margin-top: 0;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.8rem;
    margin: 0.8rem 0;
}

.field-row select,
.field-row input[type="number"] {
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
}

.field-row input[type="range"] {
    width: 100%;
}

.muted {
    color: #94a3b8;
}

#preview-canvas {
    width: 100%;
    height: auto;
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid #1f2937;
}

.site-footer {
    padding: 1.5rem 3rem 2.5rem;
    border-top: 1px solid #1f2937;
    background: #0b1120;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.page .page-content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem 3rem;
    line-height: 1.7;
}

.page .page-content h2 {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .site-header {
        padding: 1.5rem 2rem;
    }

    .ads-section,
    .site-footer {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 640px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .field-row {
        grid-template-columns: 1fr;
        align-items: start;
    }
}