.fc-wrap { max-width: 980px; margin: 0 auto; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1a1a2e; padding: 24px 0 48px; box-sizing: border-box; }
.fc-wrap *, .fc-wrap *::before, .fc-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.fc-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 10px; flex-wrap: wrap; }
.fc-topbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.fc-currency-sel { padding: 6px 10px; font-size: 13px; font-weight: 500; border: 1.5px solid #cbd5e1; border-radius: 8px; background: #fff; color: #1a1a2e; font-family: inherit; cursor: pointer; outline: none; transition: border-color 0.15s; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.fc-currency-sel:focus { border-color: #1a56db; }

.fc-tabs { margin-bottom: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.fc-tab { padding: 6px 15px; font-size: 13px; font-weight: 500; border: 1.5px solid #cbd5e1; border-radius: 20px; cursor: pointer; background: #fff; color: #64748b; transition: all 0.15s ease; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.fc-tab:hover { border-color: #1a56db; color: #1a56db; background: #eff6ff; }
.fc-tab.active { background: #1a56db; border-color: #1a56db; color: #fff; }

.fc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .fc-body { grid-template-columns: 1fr; } }

.fc-card { background: #fff; border: 1.5px solid #cbd5e1; border-radius: 14px; padding: 22px; box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.fc-card-title { font-size: 11px; font-weight: 700; color: #94a3b8; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }

.fc-field { margin-bottom: 18px; }
.fc-label { font-size: 13px; color: #64748b; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.fc-label-val { font-weight: 600; color: #1a56db; font-size: 13px; }

.fc-wrap input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: #e2e8f0; outline: none; cursor: pointer; }
.fc-wrap input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #1a56db; border: 3px solid #fff; box-shadow: 0 0 0 1px #1a56db; cursor: pointer; transition: box-shadow 0.15s; }
.fc-wrap input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 4px rgba(26,86,219,0.15); }
.fc-wrap input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #1a56db; border: 3px solid #fff; box-shadow: 0 0 0 1px #1a56db; cursor: pointer; }

.fc-wrap input[type="text"], .fc-wrap input[type="number"] { width: 100%; padding: 9px 12px; font-size: 13px; border: 1.5px solid #cbd5e1; border-radius: 8px; background: #f8fafc; color: #1a1a2e; font-family: inherit; outline: none; transition: border-color 0.15s; }
.fc-wrap input[type="text"]:focus, .fc-wrap input[type="number"]:focus { border-color: #1a56db; background: #fff; }

.fc-wrap select { width: 100%; padding: 9px 12px; font-size: 13px; border: 1.5px solid #cbd5e1; border-radius: 8px; background: #f8fafc; color: #1a1a2e; font-family: inherit; cursor: pointer; outline: none; transition: border-color 0.15s; }
.fc-wrap select:focus { border-color: #1a56db; background: #fff; }

.fc-results { background: #f8fafc; border-radius: 10px; padding: 4px 0; border: 1.5px solid #cbd5e1; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.fc-result-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f1f5f9; }
.fc-result-row:last-child { border-bottom: none; }
.fc-result-label { font-size: 13px; color: #64748b; }
.fc-result-val { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.fc-result-val.highlight { font-size: 20px; color: #1a56db; font-weight: 700; }
.fc-result-val.green { color: #16a34a; }
.fc-result-val.red { color: #dc2626; }

.fc-chart-bar { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.fc-bar-row { display: flex; align-items: center; gap: 10px; }
.fc-bar-label { font-size: 12px; color: #64748b; width: 82px; flex-shrink: 0; }
.fc-bar-track { flex: 1; background: #f1f5f9; border-radius: 4px; height: 10px; overflow: hidden; }
.fc-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.fc-bar-text { font-size: 12px; color: #64748b; min-width: 82px; text-align: right; }

.nw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nw-table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8; padding: 8px 10px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; text-align: left; }
.nw-table td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.nw-table tr:last-child td { border-bottom: none; }
.nw-table input[type="text"], .nw-table input[type="number"] { padding: 5px 8px; font-size: 12px; }

.nw-add-btn { margin-top: 8px; padding: 7px 14px; font-size: 12px; font-weight: 600; border: 1.5px dashed #cbd5e1; border-radius: 8px; background: transparent; color: #64748b; cursor: pointer; width: 100%; transition: all 0.15s; }
.nw-add-btn:hover { border-color: #1a56db; color: #1a56db; background: #eff6ff; }
.nw-del-btn { background: none; border: none; color: #cbd5e1; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; transition: color 0.15s; }
.nw-del-btn:hover { color: #dc2626; }

.budget-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.budget-row input[type="text"] { flex: 2; }
.budget-row input[type="number"] { flex: 1; }

.tip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tip-person { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; text-align: center; }
.tip-person .tp-name { font-size: 12px; color: #64748b; }
.tip-person .tp-amt  { font-size: 18px; font-weight: 700; color: #1a56db; }
@media (max-width: 400px) { .tip-grid { grid-template-columns: 1fr; } }

.fc-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-red   { background: #fee2e2; color: #991b1b; }

.fc-info { font-size: 12px; color: #94a3b8; margin-top: 12px; line-height: 1.6; }
.fc-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid #e2e8f0; text-align: center; font-size: 12px; color: #94a3b8; }
