/* Daraz Profit Calculator Pro — Public Styles */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

.dpc-wrap *, .dpc-wrap *::before, .dpc-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }
.dpc-wrap { font-family: 'Nunito', sans-serif; background: #f5f7fa; border-radius: 16px; overflow: hidden; padding-bottom: 24px; max-width: 960px; margin: 0 auto; }

/* Hero */
.dpc-hero { background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 50%, #ffa500 100%); padding: 28px 24px 32px; text-align: center; }
.dpc-hero-title { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -.3px; }
.dpc-hero-sub { font-size: 13px; color: rgba(255,255,255,.88); margin-top: 5px; font-weight: 600; }
.dpc-hero-badge { display: inline-block; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 13px; border-radius: 20px; margin-top: 10px; letter-spacing: .4px; }

/* Layout */
.dpc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dpc-col-left { padding: 20px; }
.dpc-col-right { padding: 20px 20px 20px 8px; display: flex; flex-direction: column; gap: 12px; }

/* Card */
.dpc-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.07); padding: 18px; margin-bottom: 14px; }
.dpc-card:last-of-type { margin-bottom: 0; }
.dpc-card-head { font-size: 13px; font-weight: 800; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; }
.dpc-card-head.orange { color: #e8541a; }
.dpc-card-head.green  { color: #1a7a4a; }
.dpc-card-head.blue   { color: #1565c0; }
.dpc-card-head.purple { color: #7b1fa2; }

/* Fields */
.dpc-field { margin-bottom: 13px; }
.dpc-field:last-child { margin-bottom: 0; }
.dpc-field label { display: block; font-size: 12px; font-weight: 700; color: #555; margin-bottom: 5px; }
.dpc-field .req { color: #e8541a; }
.dpc-input-wrap { position: relative; }
.dpc-sym { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 800; color: #e8541a; }
.dpc-inp { width: 100%; padding: 10px 12px 10px 30px; border: 2px solid #f0f0f0; border-radius: 10px; font-size: 14px; font-weight: 700; color: #333; font-family: 'Nunito', sans-serif; background: #fafafa; transition: border-color .15s, box-shadow .15s; }
.dpc-inp:focus { outline: none; border-color: #ff6b00; box-shadow: 0 0 0 3px rgba(255,107,0,.12); background: #fff; }
.dpc-sel { width: 100%; padding: 10px 12px; border: 2px solid #f0f0f0; border-radius: 10px; font-size: 13px; font-weight: 700; color: #333; font-family: 'Nunito', sans-serif; background: #fafafa; cursor: pointer; }
.dpc-sel:focus { outline: none; border-color: #ff6b00; }

/* Radio groups */
.dpc-radio-group { display: flex; flex-direction: column; gap: 7px; }
.dpc-radio { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border-radius: 9px; border: 2px solid #f0f0f0; cursor: pointer; transition: all .15s; background: #fafafa; user-select: none; }
.dpc-radio:hover { border-color: #ffcc99; background: #fff8f0; }
.dpc-radio.active { border-color: #ff6b00; background: #fff3e0; }
.dpc-radio-dot { width: 17px; height: 17px; border-radius: 50%; border: 2px solid #ddd; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; transition: border-color .15s; }
.dpc-radio.active .dpc-radio-dot { border-color: #ff6b00; }
.dpc-radio-dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #ff6b00; opacity: 0; transition: opacity .15s; }
.dpc-radio.active .dpc-radio-dot::after { opacity: 1; }
.dpc-radio-txt { font-size: 12px; font-weight: 700; color: #444; line-height: 1.4; }
.dpc-radio-sub { font-size: 11px; color: #999; font-weight: 600; margin-top: 2px; }

/* Calc button */
.dpc-calc-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, #ff6b00, #ff9500); border: none; border-radius: 12px; font-size: 16px; font-weight: 900; color: #fff; cursor: pointer; font-family: 'Nunito', sans-serif; box-shadow: 0 4px 15px rgba(255,107,0,.4); transition: all .15s; margin-top: 4px; }
.dpc-calc-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,0,.45); }
.dpc-calc-btn:active { transform: scale(.98); }

/* Result hero */
.dpc-result-hero { border-radius: 14px; padding: 20px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,.12); transition: background .3s; }
.dpc-result-hero.profit  { background: linear-gradient(135deg, #1a7a4a, #22a860); box-shadow: 0 4px 15px rgba(26,122,74,.3); }
.dpc-result-hero.loss    { background: linear-gradient(135deg, #c0392b, #e74c3c); box-shadow: 0 4px 15px rgba(192,57,43,.3); }
.dpc-result-hero.neutral { background: linear-gradient(135deg, #d4720a, #e8940d); box-shadow: 0 4px 15px rgba(212,114,10,.3); }
.dpc-result-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.82); text-transform: uppercase; letter-spacing: 1px; }
.dpc-result-value { font-size: 36px; font-weight: 900; color: #fff; margin: 7px 0 2px; letter-spacing: -1px; }
.dpc-result-sub { font-size: 12px; color: rgba(255,255,255,.8); font-weight: 600; }
.dpc-result-badges { display: flex; gap: 7px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.dpc-badge-pill { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 20px; }

/* Stats grid */
.dpc-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dpc-stat { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(0,0,0,.06); text-align: center; }
.dpc-stat-lbl { font-size: 10px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: .5px; }
.dpc-stat-val { font-size: 17px; font-weight: 900; margin-top: 3px; }
.dpc-stat-val.green { color: #1a7a4a; }
.dpc-stat-val.red   { color: #c0392b; }
.dpc-stat-val.blue  { color: #1565c0; }

/* Breakdown */
.dpc-breakdown { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.07); overflow: hidden; }
.dpc-breakdown-title { background: #f8f9fa; padding: 11px 16px; font-size: 11px; font-weight: 800; color: #555; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid #f0f0f0; }
.dpc-br-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; border-bottom: 1px solid #f5f5f5; transition: background .1s; }
.dpc-br-row:hover { background: #fafafa; }
.dpc-br-name { font-size: 12px; font-weight: 700; color: #555; }
.dpc-br-amt { font-size: 13px; font-weight: 800; }
.dpc-br-amt.income { color: #1a7a4a; }
.dpc-br-amt.deduct { color: #c0392b; }
.dpc-br-total { background: #fff8f0; display: flex; justify-content: space-between; padding: 12px 16px; border-top: 2px solid #ff6b00; font-size: 14px; font-weight: 800; }
.dpc-br-total span:last-child { font-size: 17px; }

/* Bars */
.dpc-bars { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.dpc-bars-title { font-size: 11px; font-weight: 800; color: #aaa; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.dpc-bar-row { margin-bottom: 10px; }
.dpc-bar-row:last-child { margin-bottom: 0; }
.dpc-bar-labels { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: #666; margin-bottom: 4px; }
.dpc-bar-track { height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.dpc-bar-fill { height: 100%; border-radius: 4px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.dpc-bar-fill.green  { background: #1a7a4a; }
.dpc-bar-fill.red    { background: #c0392b; }
.dpc-bar-fill.orange { background: #ff6b00; }
.dpc-bar-fill.blue   { background: #1565c0; }

/* Projections */
.dpc-projections { background: linear-gradient(135deg, #1565c0, #1976d2); border-radius: 14px; padding: 16px; box-shadow: 0 4px 12px rgba(21,101,192,.3); }
.dpc-proj-title { font-size: 11px; font-weight: 800; color: rgba(255,255,255,.82); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.dpc-proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dpc-proj-stat { background: rgba(255,255,255,.15); border-radius: 10px; padding: 10px; text-align: center; }
.dpc-proj-lbl { font-size: 10px; color: rgba(255,255,255,.75); font-weight: 700; }
.dpc-proj-val { font-size: 15px; font-weight: 900; color: #fff; margin-top: 2px; }

/* Disclaimer */
.dpc-disclaimer { font-size: 11px; color: #aaa; font-weight: 600; text-align: center; line-height: 1.6; padding: 0 6px; }

/* Responsive */
@media (max-width: 640px) {
    .dpc-body { grid-template-columns: 1fr; }
    .dpc-col-right { padding: 0 20px 20px; }
    .dpc-result-value { font-size: 28px; }
    .dpc-hero-title { font-size: 18px; }
}
