:root {
    --site-bg: #0f172a;
    --site-text: #e5e7eb;
    --site-card: #1e293b;
    --site-card-border: #334155;
    --site-button: #22c55e;
    --site-button-text: #0f172a;
    --site-muted: #94a3b8;
    --site-header-bg: #111827;
    --site-panel-dark: #172033;
    --site-link: #93c5fd;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--site-bg);
    color: var(--site-text);
    line-height: 1.6;
}

a {
    color: var(--site-link);
}

img {
    max-width: 100%;
}

.site-shell,
.site-header-inner,
.site-footer-inner,
.wrap,
.tool-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-header {
    background: var(--site-header-bg);
    border-bottom: 1px solid var(--site-card-border);
}

.site-header-inner {
    padding-top: 16px;
    padding-bottom: 16px;
}

.site-brand {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
}

.site-nav {
    margin-top: 8px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.site-nav a {
    color: #cbd5e1;
    text-decoration: none;
}

.site-nav a:hover {
    color: #ffffff;
}

.site-banner {
    padding: 20px 0 0;
    text-align: center;
}

.site-banner-inner {
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.site-banner img {
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 16px;
    display: inline-block;
}

.site-footer {
    margin-top: 40px;
    background: var(--site-header-bg);
    border-top: 1px solid var(--site-card-border);
    color: var(--site-muted);
}

.site-footer-inner {
    padding-top: 18px;
    padding-bottom: 18px;
}

.site-footer p {
    margin: 0;
    text-align: center;
}

.wrap,
.tool-wrap {
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    margin: 0 0 10px;
    color: #ffffff;
}

.hero p {
    margin: 0;
    color: #cbd5e1;
}

.card,
.tool-card,
.content-section,
.gallery-section,
.page-card,
.project-header {
    background: var(--site-card);
    border: 1px solid var(--site-card-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.btn,
.tool-btn,
.download-btn,
.secondary-btn {
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.btn,
.tool-btn,
.download-btn {
    background: var(--site-button);
    color: var(--site-button-text);
}

.secondary-btn,
.tool-btn-secondary {
    background: var(--site-card-border);
    color: #e5e7eb;
}

.no-image,
.project-thumb-empty {
    color: #64748b;
    text-align: center;
    padding: 12px;
}

.addon-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.addon-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--site-card);
    border: 1px solid var(--site-card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.20);
}

.addon-thumb {
    width: 236px;
    min-width: 236px;
    height: 256px;
    background: #111827;
    border-right: 1px solid var(--site-card-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.addon-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.addon-content {
    flex: 1;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.addon-content h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.addon-meta {
    color: var(--site-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.addon-desc {
    margin: 0 0 18px;
}

.page-card,
.tool-card {
    padding: 28px;
}

.page-title,
.tool-title {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.15;
    color: #ffffff;
}

.tool-text {
    margin: 0 0 24px;
    color: #cbd5e1;
}

@media (max-width: 760px) {
    .addon-card {
        flex-direction: column;
    }

    .addon-thumb {
        width: 100%;
        min-width: 100%;
        height: 256px;
        border-right: none;
        border-bottom: 1px solid var(--site-card-border);
    }
}

@media (max-width: 640px) {
    .page-title,
    .tool-title {
        font-size: 1.6rem;
    }

    .page-card,
    .tool-card {
        padding: 22px;
    }
}
.translator-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 18px;
}

.translator-controls label,
.translator-grid label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #ffffff;
}

.translator-controls select {
    background: var(--site-panel-dark);
    color: var(--site-text);
    border: 1px solid var(--site-card-border);
    border-radius: 10px;
    padding: 12px;
    min-width: 240px;
}

.translator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.translator-grid textarea {
    width: 100%;
    min-height: 520px;
    resize: vertical;
    background: #020617;
    color: #e5e7eb;
    border: 1px solid var(--site-card-border);
    border-radius: 12px;
    padding: 14px;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
}

.status-box {
    background: #020617;
    border: 1px solid var(--site-card-border);
    color: var(--site-muted);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 18px;
}

.tool-btn-secondary {
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    background: var(--site-card-border);
    color: #e5e7eb;
}

@media (max-width: 800px) {
    .translator-grid {
        grid-template-columns: 1fr;
    }
}
.lang-reminder-box {
    background: #020617;
    border: 1px solid var(--site-card-border);
    color: var(--site-text);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.lang-reminder-box:last-child {
    margin-bottom: 0;
}