/* ============================================================
   Coindaily - Coinbase Fee Calculator
   Reuses the terminal tool language: dark panels, hairlines,
   amber accent, mono labels/numbers, Inter copy.
   ============================================================ */
.cb-hero { padding: 26px 0 6px; }
.cb-crumb { font-family: var(--mono); font-size: 11px; color: var(--tx-dim); margin-bottom: 10px; display: flex; gap: 7px; align-items: center; }
.cb-crumb a { color: var(--tx-mid); }
.cb-crumb a:hover { color: var(--tx-hi); }
.cb-crumb .sep { color: var(--tx-faint); }
.cb-hero h1 { font-size: 27px; letter-spacing: -0.01em; color: var(--tx-hi); margin: 0 0 8px; }
.cb-hero .sub { font-size: 13.5px; color: var(--tx-mid); max-width: 680px; line-height: 1.55; }
.cb-hero .sub b { color: var(--tx); }

.cb-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; margin: 18px 0 14px; align-items: start; }
@media (max-width: 940px) { .cb-grid { grid-template-columns: 1fr; } }

.cb-panel { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 16px 18px 17px; }
.cb-panel-head { margin-bottom: 14px; }
.cb-panel-head h2 { font-size: 13px; font-weight: 600; color: var(--tx-hi); padding-left: 9px; border-left: 2px solid var(--amber-dim); }

.cb-field { margin-bottom: 14px; }
.cb-field:last-child { margin-bottom: 0; }
.cb-label { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-dim); margin-bottom: 7px; }
.cb-label small { text-transform: none; letter-spacing: 0; color: var(--tx-faint); }

/* segmented order-type toggle */
.cb-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 9px; padding: 3px; }
.cb-seg button { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--tx-mid); background: none; border: 0; padding: 9px 6px; border-radius: 6px; cursor: pointer; transition: .12s; line-height: 1.1; }
.cb-seg button small { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--tx-faint); margin-top: 3px; }
.cb-seg button:hover { color: var(--tx-hi); }
.cb-seg button.active { background: rgba(201,154,75,.15); color: var(--amber); }
.cb-seg button.active small { color: var(--amber-dim); }

/* inputs */
.cb-amt { display: flex; align-items: center; gap: 6px; background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 8px; padding: 0 12px; transition: border-color .12s; }
.cb-amt:focus-within { border-color: var(--amber); }
.cb-amt .sym { font-family: var(--mono); font-size: 14px; color: var(--tx-mid); flex-shrink: 0; pointer-events: none; }
.cb-in { width: 100%; background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 8px; padding: 11px 12px; color: var(--tx-hi); font-size: 14px; font-family: var(--mono); outline: none; transition: border-color .12s; }
.cb-amt .cb-in { border: 0; background: none; padding: 11px 0; font-size: 16px; flex: 1; min-width: 0; }
.cb-in:focus { border-color: var(--amber); }
.cb-select { width: 100%; background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 8px; padding: 10px 12px; color: var(--tx-hi); font-size: 12.5px; font-family: var(--sans); outline: none; cursor: pointer; -webkit-appearance: none; appearance: none; color-scheme: dark;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E747D' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; }
.cb-select:focus { border-color: var(--amber); }
.cb-pct { position: relative; }
.cb-pct .cb-in { padding-right: 26px; }
.cb-pct .pc { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 13px; color: var(--tx-mid); pointer-events: none; }
.cb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cb-check { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--tx); cursor: pointer; padding: 10px 0 1px; }
.cb-check input { accent-color: var(--amber); width: 15px; height: 15px; }
.cb-check small { color: var(--tx-dim); }
.cb-hidden { display: none !important; }

/* result */
.cb-result { }
.cb-head { padding: 2px 2px 15px; border-bottom: 1px solid var(--hairline); margin-bottom: 15px; }
.cb-head-l { font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--tx-dim); margin-bottom: 5px; }
.cb-head-v { font-size: 38px; font-weight: 600; letter-spacing: -0.02em; color: var(--amber); line-height: 1.02; font-family: var(--mono); }
.cb-head-s { font-size: 12.5px; color: var(--tx-mid); margin-top: 7px; line-height: 1.5; }
.cb-head-s b { color: var(--tx); }

.cb-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 16px; }
.cb-cellout { background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 10px 12px; min-width: 0; }
.cb-cellout .k { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-dim); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-cellout .v { font-family: var(--mono); font-size: 15px; color: var(--tx-hi); }
@media (max-width: 480px) { .cb-cells { grid-template-columns: repeat(2, 1fr); } }

/* composition bar */
.cb-bar-wrap { margin-bottom: 16px; }
.cb-bar { display: flex; width: 100%; height: 12px; border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.cb-bar i { height: 100%; transition: width .2s; }
.cb-bar .net { background: #3f6b56; } .cb-bar .fee { background: var(--amber); } .cb-bar .spr { background: #9c5460; }
.cb-leg { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 10px; }
.cb-leg span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tx-mid); }
.cb-leg i { width: 9px; height: 9px; border-radius: 2px; }
.cb-leg b { color: var(--tx); font-family: var(--mono); }

/* breakdown table */
.cb-table { width: 100%; border-collapse: collapse; }
.cb-table td { padding: 9px 2px; border-bottom: 1px solid var(--hairline-2); font-size: 12.5px; color: var(--tx); }
.cb-table tr:last-child td { border-bottom: 0; }
.cb-table td:last-child { text-align: right; font-family: var(--mono); color: var(--tx-hi); white-space: nowrap; }
.cb-table .sub td { color: var(--tx-dim); font-size: 11.5px; }
.cb-table .tot td { padding-top: 11px; font-weight: 600; }
.cb-table .tot td:first-child { color: var(--tx-hi); }
.cb-table .tot td:last-child { color: var(--amber); }
.cb-table .pct { color: var(--tx-dim); font-family: var(--mono); font-size: 11px; }

/* content section */
.cb-content { margin: 30px 0 8px; max-width: 820px; }
.cb-content h2 { font-size: 19px; color: var(--tx-hi); letter-spacing: -0.01em; margin: 26px 0 10px; }
.cb-content h2:first-child { margin-top: 0; }
.cb-content h3 { font-size: 14px; color: var(--tx-hi); margin: 18px 0 7px; }
.cb-content p { font-size: 13.5px; line-height: 1.65; color: var(--tx); margin: 0 0 12px; }
.cb-content p b { color: var(--tx-hi); }
.cb-content a { color: var(--amber); }
.cb-content ul { margin: 0 0 12px; padding-left: 18px; }
.cb-content li { font-size: 13.5px; line-height: 1.6; color: var(--tx); margin-bottom: 6px; }

/* fee schedule table */
.cb-fee-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.cb-fee-table th { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--tx-dim); font-weight: 500; text-align: left; padding: 10px 12px; background: var(--bg-2); border-bottom: 1px solid var(--hairline); }
.cb-fee-table th.r, .cb-fee-table td.r { text-align: right; }
.cb-fee-table td { padding: 9px 12px; border-bottom: 1px solid var(--hairline-2); font-size: 12.5px; color: var(--tx); }
.cb-fee-table td.num { font-family: var(--mono); color: var(--tx-hi); }
.cb-fee-table tr:last-child td { border-bottom: 0; }
.cb-fee-table tr.intro td:first-child { color: var(--amber); }

.cb-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
@media (max-width: 720px) { .cb-notes { grid-template-columns: 1fr; } }
.cb-note { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 14px 16px; }
.cb-note h3 { font-size: 12.5px; color: var(--tx-hi); margin: 0 0 9px; padding-left: 8px; border-left: 2px solid var(--amber-dim); }
.cb-note ul { margin: 0; padding-left: 16px; }
.cb-note li { font-size: 12.5px; line-height: 1.55; color: var(--tx-mid); margin-bottom: 6px; }
.cb-note li b { color: var(--tx); }

.cb-disclaimer { display: flex; gap: 10px; align-items: flex-start; background: var(--panel); border: 1px solid var(--hairline); border-left: 2px solid var(--amber-dim); border-radius: var(--r-lg); padding: 13px 15px; margin: 14px 0 4px; }
.cb-disclaimer svg { color: var(--amber); flex-shrink: 0; margin-top: 1px; }
.cb-disclaimer span { font-size: 12px; line-height: 1.55; color: var(--tx-mid); }
.cb-disclaimer b { color: var(--tx); }
.cb-updated { font-family: var(--mono); font-size: 10.5px; color: var(--tx-dim); margin: 16px 0 2px; }
.cb-updated b { color: var(--tx-mid); }
