:root {
    --netgold-avif-primary: #3fa7d6;
    --netgold-avif-dark: #0078a4;
    --netgold-avif-bg: #f5f7f9;
    --netgold-avif-white: #ffffff;
    --netgold-avif-green: #46b450;
    --netgold-avif-text: #3c434a;
    --netgold-avif-border: #e2e4e7;
}

.netgold-avif-wrapper * { box-sizing: border-box; }
.netgold-avif-wrapper { max-width: 100%; margin: 20px 20px 0 0; padding-right: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; }
.netgold-avif-header { margin-bottom: 30px; }
.netgold-avif-header h1 { color: var(--netgold-avif-dark); font-weight: 300; font-size: 2.4rem; margin: 0; padding: 0; }

.netgold-avif-grid { display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: stretch; }

@media (max-width: 1024px) {
    .netgold-avif-grid { grid-template-columns: 1fr; }
}

.netgold-avif-col-left { display: flex; flex-direction: column; gap: 30px; }
.netgold-avif-col-right { display: flex; flex-direction: column; }

.netgold-avif-card { background: var(--netgold-avif-white); border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid var(--netgold-avif-border); overflow: hidden; }
.netgold-avif-card-header { background: #fafbfc; padding: 18px 25px; border-bottom: 1px solid var(--netgold-avif-border); }
.netgold-avif-card-header h2 { margin: 0; font-size: 1.2rem; font-weight: 600; color: var(--netgold-avif-dark); }
.netgold-avif-card-body { padding: 25px; }

.netgold-avif-dashboard { text-align: center; padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; flex: 1; }

.netgold-avif-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 35px; width: 100%; }
.netgold-avif-stat-box { background: #fdfdfd; border: 1px solid #edf1f4; border-radius: 10px; padding: 20px 10px; }
.netgold-avif-stat-box.highlight { background: #f4fbfe; border-color: #d1ecf9; }
.netgold-avif-stat-label { font-size: 13px; color: #646970; font-weight: 600; display: block; text-transform: uppercase; letter-spacing: 0.5px; }
.netgold-avif-stat-value { font-size: 28px; color: var(--netgold-avif-dark); font-weight: 300; display: block; margin-top: 8px; }
.netgold-avif-stat-box.highlight .netgold-avif-stat-value { color: var(--netgold-avif-primary); font-weight: 400; }

.netgold-avif-circle-wrap { width: 220px; height: 220px; background: #e0e0e0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 35px auto; position: relative; transition: background 0.4s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.netgold-avif-circle-inner { width: 180px; height: 180px; background: var(--netgold-avif-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 300; color: var(--netgold-avif-dark); flex-direction: column; box-shadow: inset 0 3px 10px rgba(0,0,0,0.03); line-height: 1; }
.netgold-avif-circle-label { font-size: 14px; color: #646970; font-weight: 400; margin-top: 10px; line-height: 1; }

.netgold-avif-input { border: 1px solid #ccc; border-radius: 6px; padding: 6px 12px; width: 100px; font-size: 14px; }
.netgold-avif-checkbox-list label { display: flex; align-items: center; margin-bottom: 12px; font-size: 14px; color: var(--netgold-avif-text); cursor: pointer; }
.netgold-avif-checkbox-list input[type=checkbox] { margin-right: 10px; width: 18px; height: 18px; cursor: pointer; }

.netgold-avif-btn-group { display: flex; gap: 15px; justify-content: center; }
.netgold-avif-btn { border-radius: 6px !important; padding: 8px 24px !important; font-size: 15px !important; font-weight: 500 !important; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.netgold-avif-btn-primary { background: var(--netgold-avif-primary) !important; border: 1px solid var(--netgold-avif-primary) !important; color: #fff !important; box-shadow: 0 4px 10px rgba(63,167,214,0.3) !important; }
.netgold-avif-btn-primary:hover:not(:disabled) { background: var(--netgold-avif-dark) !important; border-color: var(--netgold-avif-dark) !important; transform: translateY(-1px); box-shadow: 0 6px 15px rgba(0,120,164,0.3) !important; }

.netgold-avif-btn-secondary { background: #fff !important; border: 1px solid #ccd0d4 !important; color: var(--netgold-avif-dark) !important; }
.netgold-avif-btn-secondary:hover:not(:disabled) { background: #f3f5f6 !important; border-color: var(--netgold-avif-primary) !important; color: var(--netgold-avif-primary) !important; }

.netgold-avif-btn:disabled, #submit:disabled { opacity: 0.5 !important; cursor: not-allowed !important; transform: none !important; box-shadow: none !important; }

.netgold-avif-status-text { color: var(--netgold-avif-dark); font-weight: 500; margin-top: 25px; font-size: 16px; min-height: 24px; transition: color 0.3s; }

.netgold-avif-diag-list { margin: 0; padding: 0; list-style: none; }
.netgold-avif-diag-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: var(--netgold-avif-text); }
.netgold-avif-diag-list li:last-child { border-bottom: none; padding-bottom: 0; }
.netgold-avif-diag-list strong { font-weight: 500; }

.netgold-avif-range { cursor: pointer; }
.netgold-avif-badge { font-weight: 600; background: var(--netgold-avif-bg); color: var(--netgold-avif-dark); border: 1px solid var(--netgold-avif-border); padding: 5px 15px; border-radius: 6px; font-size: 15px; min-width: 45px; text-align: center; }

/* Conversion log / history */
.netgold-avif-log-card { margin-top: 30px; }
.netgold-avif-log-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.netgold-avif-log-header h2 { margin: 0; }
.netgold-avif-log-box { background: #f0f0f1; border: 1px solid var(--netgold-avif-border); border-radius: 4px; padding: 12px; height: 260px; overflow-y: auto; font-family: Consolas, Menlo, Monaco, monospace; font-size: 12px; line-height: 1.5; color: #3c434a; text-align: left; }
.netgold-avif-log-line { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid #e1e1e1; word-break: break-word; }
.netgold-avif-log-line:last-child { border-bottom: none; margin-bottom: 0; }
.netgold-avif-log-empty { color: #8a8f94; font-style: italic; }
.netgold-avif-log-sep { margin: 8px 0; padding: 4px 0; color: var(--netgold-avif-dark); font-weight: 700; border: none; border-top: 1px dashed #c9cccf; border-bottom: 1px dashed #c9cccf; }