.vtc-wrap {
    font-family: 'Roboto', sans-serif;
    color: #1e293b;
    max-width: 1200px;
    margin: 24px auto;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    overflow: hidden;
}
.vtc-header {
    background: linear-gradient(135deg, #0c1f3f 0%, #1241a3 60%, #1d5fd4 100%);
    padding: 28px 28px 0;
    color: white;
    position: relative;
    overflow: hidden;
}
.vtc-header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.vtc-header::after {
    content: '';
    position: absolute;
    bottom: 10px; left: 40%;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}
.vtc-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.vtc-header-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    font-size: 1.5em;
}
.vtc-header-text h2 {
    margin: 0 0 4px;
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.2;
    color: white !important;
}
.breadcrumb_container {
  display: none;
}
.vtc-header-text p {
    margin: 0;
    font-size: 0.8em;
    opacity: 0.65;
    line-height: 1.4;
}
.vtc-header-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    position: relative; z-index: 1;
}
.vtc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72em;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.15);
}
.vtc-badge svg { width: 12px; height: 12px; }

.vtc-nav-wrap {
    background: linear-gradient(135deg, #0c1f3f 0%, #1241a3 60%, #1d5fd4 100%);
    padding: 0 20px 0;
    position: relative;
}
.vtc-nav-wrap::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 48px;
    background: linear-gradient(to right, transparent, #1241a3);
    pointer-events: none;
    z-index: 2;
}
.vtc-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.vtc-nav::-webkit-scrollbar { display: none; }
.vtc-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 13px 16px 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 0.72em;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
    position: relative;
    border-bottom: 3px solid transparent;
}
.vtc-nav-btn svg { width: 19px; height: 19px; flex-shrink: 0; transition: all 0.2s; }
.vtc-nav-btn:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.07);
}
.vtc-nav-btn:hover svg { transform: translateY(-1px); }
.vtc-nav-btn.active {
    color: white;
    background: rgba(255,255,255,0.1);
    border-bottom-color: #60a5fa;
    font-weight: 700;
}
.vtc-nav-btn.active svg { color: #93c5fd; }

.vtc-body { padding: 20px 20px 0; }
.vtc-panel { display: none; }
.vtc-panel.active { display: block; }

.vtc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.vtc-grid > * { min-width: 0; }
@media(min-width: 900px) {
    .vtc-grid { grid-template-columns: 380px 1fr; }
    .vtc-grid.wide { grid-template-columns: 1fr 1fr; }
    .vtc-grid.triple { grid-template-columns: 1fr 1fr 1fr; }
}
.vtc-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 18px;
}
.vtc-card h3 {
    margin: 0 0 16px;
    font-size: 1em;
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vtc-card h3 svg { width: 18px; height: 18px; flex-shrink: 0; }

.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 0.83em; font-weight: 500; color: #64748b; margin-bottom: 5px; }
.fg input[type="text"],
.fg input[type="number"],
.fg select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 0.9em;
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.fg input:focus, .fg select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.rg { display: flex; align-items: center; gap: 10px; position: relative; }
.rg input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
}
.rg input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.rg input[type="range"]::-moz-range-thumb {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
}
.rl {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    min-width: 76px;
    text-align: right;
    cursor: pointer;
    color: #1e293b;
}
.rl-input {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 76px; padding: 6px 8px; border: 2px solid #3b82f6;
    border-radius: 6px; font-size: 0.85em; z-index: 10; text-align: right;
    background: white;
}
.rb {
    margin-top: 14px;
    padding: 14px;
    border-radius: 9px;
    text-align: center;
}
.rb p { margin: 2px 0; font-size: 0.8em; color: #64748b; }
.rb .amount { font-size: 1.45em; font-weight: 700; margin: 4px 0; word-break: break-word; }
.rb.blue  { background: #eff6ff; border: 1px solid #bfdbfe; }
.rb.blue  .amount { color: #3b82f6; }
.rb.green { background: #f0fdf4; border: 1px solid #86efac; }
.rb.green .amount { color: #16a34a; }
.rb.orange{ background: #fff7ed; border: 1px solid #fed7aa; }
.rb.orange .amount { color: #c2410c; }
.rb.purple{ background: #faf5ff; border: 1px solid #d8b4fe; }
.rb.purple .amount { color: #7c3aed; }
.rb.red   { background: #fef2f2; border: 1px solid #fca5a5; }
.rb.red   .amount { color: #dc2626; }
.rb.teal  { background: #f0fdfa; border: 1px solid #5eead4; }
.rb.teal  .amount { color: #0f766e; }

.sum-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.sum-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 12px;
    text-align: center;
}
.sum-box p { font-size: 0.78em; color: #64748b; margin: 0 0 4px; }
.sum-box .val { font-size: 1.2em; font-weight: 700; color: #3b82f6; word-break: break-word; }
.sum-box .val.red { color: #ef4444; }
.sum-box .val.orange { color: #f97316; }
.sum-box .val.green { color: #000000; }
.sum-box .val.purple { color: #8b5cf6; }
.green {
background-color: #fff !important;
}

.cw { position: relative; height: 280px; width: 100%; margin: 14px 0; }

.tbl-wrap {
    max-height: 420px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.tbl { width: 100%; min-width: 560px; border-collapse: collapse; }
.tbl th, .tbl td {
    padding: 9px 12px;
    font-size: 0.8em;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.tbl th {
    background: #f1f5f9;
    font-weight: 600;
    color: #3b82f6;
    position: sticky; top: 0; z-index: 1;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:nth-child(even) { background: #f8fafc; }

.tips li { padding: 8px 0; border-bottom: 1px solid #f8fafc; font-size: 0.84em; line-height: 1.5; }
.tips li:last-child { border-bottom: none; }
.tips li strong { color: #3b82f6; display: block; margin-bottom: 2px; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72em;
    font-weight: 600;
}
.badge.good { background: #dcfce7; color: #15803d; }
.badge.warn { background: #fef9c3; color: #854d0e; }
.badge.bad  { background: #fee2e2; color: #b91c1c; }

.cmp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}
.cmp-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 12px;
    text-align: center;
}
.cmp-box p { margin: 4px 0; font-size: 0.83em; }
.cmp-box .cmp-amount { font-size: 1.25em; font-weight: 700; color: #3b82f6; word-break: break-word; }
.cmp-box.winner { border-color: #10b981; background: #f0fdf4; }
.cmp-box.winner .cmp-amount { color: #16a34a; }
.cmp-label { font-size: 0.75em; color: #64748b; }
.cmp-diff {
    grid-column: span 2;
    text-align: center;
    font-size: 0.85em;
    font-weight: 600;
    padding: 8px;
    border-radius: 7px;
    background: #eff6ff;
    color: #1d4ed8;
}

.flip-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #e2e8f0; font-size: 0.85em; }
.flip-row:last-child { border-bottom: none; }
.flip-row span:last-child { font-weight: 600; }

@media(max-width:600px) {
    .vtc-body { padding: 12px 12px 0; }
    .vtc-card { padding: 14px; }
    .vtc-nav-btn { padding: 8px 8px; font-size: 0.68em; }
    .cmp-grid { grid-template-columns: 1fr; }
    .cmp-diff { grid-column: span 1; }
}
