/* ==========================================================================
   Neutrava Developer Calculator – public expert calculator
   ========================================================================== */

.ndc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
}

/* Two-column layout */
.ndc-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    align-items: start;
}

/* Left: Params panel */
.ndc-params {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 24px;
    position: sticky;
    top: 80px;
}

.ndc-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #1a6e3c;
    margin: 20px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e8f5e9;
}
.ndc-section-title:first-child { margin-top: 0; }

.ndc-form-row {
    margin-bottom: 14px;
}
.ndc-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.ndc-form-row input[type="number"],
.ndc-form-row select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 7px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.ndc-form-row input:focus,
.ndc-form-row select:focus {
    border-color: #1a6e3c;
    outline: none;
}

/* Info box */
.ndc-info-box {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: #2e7d32;
    margin: 18px 0 16px;
    line-height: 1.5;
}
.ndc-pct {
    font-weight: 800;
    font-size: 15px;
}

/* Calculate button */
.ndc-btn-calculate {
    width: 100%;
    background: #1a6e3c;
    color: #fff;
    border: none;
    padding: 13px 0;
    font-size: 16px;
    font-weight: 700;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.ndc-btn-calculate:hover:not(:disabled) {
    background: #155c30;
    transform: translateY(-1px);
}
.ndc-btn-calculate:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Right: Results panel */
.ndc-results {
    min-height: 300px;
}

/* Placeholder */
.ndc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #bbb;
    text-align: center;
    gap: 12px;
}
.ndc-placeholder-icon { font-size: 52px; }
.ndc-placeholder p { font-size: 15px; max-width: 280px; }

/* Spinner (inside placeholder during calc) */
.ndc-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #1a6e3c;
    border-radius: 50%;
    animation: ndcSpin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes ndcSpin { to { transform: rotate(360deg); } }

/* Result content */
.ndc-result-content {
    animation: ndcFadeIn 0.3s ease;
}
@keyframes ndcFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 90/10 Hero */
.ndc-split-hero {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 14px;
    padding: 24px 16px;
    margin-bottom: 20px;
    text-align: center;
    gap: 0;
}
.ndc-split-owner,
.ndc-split-neutrava {
    flex: 1;
    padding: 8px 12px;
}
.ndc-split-owner {
    border-right: 2px solid #c8e6c9;
}
.ndc-split-pct {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}
.ndc-split-owner .ndc-split-pct    { color: #1a6e3c; }
.ndc-split-neutrava .ndc-split-pct { color: #4caf50; }
.ndc-split-lbl {
    font-size: 12px;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.ndc-split-amount {
    font-size: 13px;
    color: #555;
    font-weight: 600;
}
.ndc-split-sep {
    font-size: 24px;
    color: #bbb;
    padding: 0 6px;
}

/* KPI grid */
.ndc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.ndc-kpi {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
}
.ndc-kpi-label {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}
.ndc-kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: #1a6e3c;
}

/* Revenue table */
.ndc-revenue-table {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.ndc-revenue-table h4 {
    margin: 0;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}
.ndc-revenue-table table {
    width: 100%;
    border-collapse: collapse;
}
.ndc-revenue-table th,
.ndc-revenue-table td {
    padding: 11px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}
.ndc-revenue-table th {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: #fafafa;
}
.ndc-revenue-table td:not(:first-child) {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.ndc-row-highlight td { background: #e8f5e9; font-weight: 700 !important; color: #1a6e3c; }
.ndc-row-total td {
    font-weight: 700 !important;
    background: #f5f5f5;
    border-top: 2px solid #ddd;
    color: #333;
}

/* Lead section */
.ndc-lead-section {
    background: #f4faf7;
    border: 1px solid #a5d6a7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.ndc-lead-section h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #1a6e3c;
}
.ndc-lead-section p {
    margin: 0 0 14px;
    font-size: 14px;
    color: #555;
}
.ndc-lead-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.ndc-lead-row input {
    flex: 1;
    min-width: 140px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.ndc-lead-row input:focus {
    border-color: #1a6e3c;
    outline: none;
}
.ndc-btn-send {
    background: #1a6e3c;
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.ndc-btn-send:hover:not(:disabled) { background: #155c30; }
.ndc-btn-send:disabled { background: #4caf50; cursor: default; }
.ndc-lead-msg {
    margin-top: 10px;
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}
.ndc-msg-success { background: #e8f5e9; color: #1a6e3c; border: 1px solid #a5d6a7; }
.ndc-msg-error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* Disclaimer */
.ndc-disclaimer {
    font-size: 12px;
    color: #aaa;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

/* Error */
.ndc-error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    border-radius: 8px;
    padding: 14px 18px;
    color: #c62828;
    font-size: 14px;
    margin: 20px 0;
}

/* Responsive: stack at < 900px */
@media (max-width: 900px) {
    .ndc-layout {
        grid-template-columns: 1fr;
    }
    .ndc-params {
        position: static;
    }
    .ndc-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .ndc-kpi-grid { grid-template-columns: 1fr; }
    .ndc-split-pct { font-size: 36px; }
    .ndc-lead-row { flex-direction: column; align-items: stretch; }
    .ndc-btn-send { width: 100%; text-align: center; }
}
