/*
 * warranty-search-lenovo24.css
 * Motyw jasny – dopasowany do lenovo24.pl
 *
 * Użycie: zastąp istniejący blok <style>...</style> w warranty-search.php
 * tym arkuszem (lub linkuj przez <link rel="stylesheet" href="warranty-search-lenovo24.css">)
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

/* ── ZMIENNE ─────────────────────────────────────────────────────────────────
   Kolory na podstawie lenovo24.pl:
   - Tło:        białe / jasnoszare
   - Akcent:     gradient #bc4e9c → #f80759
   - Tekst:      #1a1a1a / #444
   - Obramowanie: #e0e0e0
   - Cień:       subtelny box-shadow
*/
:root {
    --bg:       #f4f5f7;
    --surface:  #ffffff;
    --surface2: #f9f9f9;
    --border:   #e0e0e0;
    --border2:  #d0d0d0;

    /* Gradient główny */
    --grad:      linear-gradient(to right, #bc4e9c, #f80759);
    --grad-hover:linear-gradient(to right, #a8428a, #d60649);
    --grad-start:#bc4e9c;
    --grad-end:  #f80759;
    --grad-mid:  #e02879;        /* punkt środkowy – do cieni/focus */
    --accent-bg: rgba(224,40,121,.06);

    /* Kolory pomocnicze (brak czerwieni) */
    --text:     #1a1a1a;
    --muted:    #666666;
    --dim:      #999999;
    --dimmer:   #cccccc;

    --green:    #1e8a44;
    --green-bg: rgba(30,138,68,.08);
    --yellow:   #b35e00;
    --yellow-bg:rgba(179,94,0,.08);
    --blue:     #0060b6;
    --blue-bg:  rgba(0,96,182,.07);

    --gold:     #b8860b;
    --silver:   #607080;
    --bronze:   #8b5a2b;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,.10);
    --shadow-lg: 0 4px 20px rgba(0,0,0,.12);

    --radius:   4px;
    --radius-lg:6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ──────────────────────────────────────────────────────────────────*/
header {
    background: var(--surface);
    border-bottom: none;
    border-image: linear-gradient(to right, #bc4e9c, #f80759) 1;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.logo-box {
    width: 34px;
    height: 34px;
    background: linear-gradient(to right, #bc4e9c, #f80759);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    color: #fff;
    flex-shrink: 0;
    border-radius: 2px;
}

.logo-title {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--text);
}

.logo-sub {
    font-size: .68rem;
    color: var(--muted);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.header-tag {
    margin-left: auto;
    font-size: .7rem;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 2px;
    background: var(--surface2);
}

/* ── MAIN ─────────────────────────────────────────────────────────────────────*/
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

/* ── TABS ─────────────────────────────────────────────────────────────────────*/
.tabs-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--surface2);
}

.tab-btn {
    flex: 1;
    padding: .75rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    font-family: 'Open Sans', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.tab-btn:hover {
    color: var(--grad-mid);
    background: #fff;
}

.tab-btn.active {
    color: var(--grad-mid);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, #bc4e9c, #f80759) 1;
    background: #fff;
    font-weight: 700;
}

.tab-icon { font-size: .95rem; }

.tab-pane { display: none; padding: 1.75rem 2rem; }
.tab-pane.active { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start; }
.tab-pane.active.full-width { display: block; }

/* ── PANEL LEFT ───────────────────────────────────────────────────────────────*/
.panel-left h1 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
    margin-bottom: .35rem;
    color: var(--text);
}

.panel-left h1 span { background: linear-gradient(to right, #bc4e9c, #f80759); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.panel-left p { color: var(--muted); font-size: .85rem; line-height: 1.6; }

.example-hint {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .875rem;
    font-size: .72rem;
    color: var(--dim);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .4rem .75rem;
    width: fit-content;
}

.example-hint .hl { background: linear-gradient(to right, #bc4e9c, #f80759); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; }

/* ── FORMS ────────────────────────────────────────────────────────────────────*/
.form-grid { display: flex; flex-direction: column; gap: .875rem; }

.field-group { display: flex; flex-direction: column; gap: .3rem; }

.field-label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
}

.input-wrap {
    display: flex;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    transition: border-color .18s, box-shadow .18s;
}

.input-wrap:focus-within {
    border-color: var(--grad-mid);
    box-shadow: 0 0 0 3px rgba(224,40,121,.15);
}

input[type=text] {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'Open Sans', sans-serif;
    font-size: .95rem;
    padding: .625rem .875rem;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: .04em;
}

input[type=text]::placeholder {
    text-transform: none;
    color: var(--dimmer);
    font-size: .85rem;
    letter-spacing: 0;
}

.serial-input input[type=text] { text-transform: none; }

.type-badge {
    display: flex;
    align-items: center;
    padding: 0 .75rem;
    border-left: 1px solid var(--border);
    gap: .3rem;
    background: var(--surface2);
    flex-shrink: 0;
}

.type-badge-label {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--dim);
}

.type-badge-val {
    font-size: .9rem;
    font-weight: 700;
    background: linear-gradient(to right, #bc4e9c, #f80759);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 2.8rem;
    letter-spacing: .06em;
}

select {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Open Sans', sans-serif;
    font-size: .85rem;
    padding: .625rem 2.25rem .625rem .875rem;
    outline: none;
    cursor: pointer;
    width: 100%;
    transition: border-color .18s, box-shadow .18s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .875rem center;
}

select:focus {
    border-color: var(--grad-mid);
    box-shadow: 0 0 0 3px rgba(224,40,121,.15);
}

select option { background: #fff; color: var(--text); }
select:disabled { opacity: .45; cursor: not-allowed; background-color: var(--surface2); }

.btn-search {
    background: linear-gradient(to right, #bc4e9c, #f80759);
    color: #fff;
    border: none;
    padding: .7rem 1.5rem;
    font-family: 'Open Sans', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius);
    transition: opacity .15s, box-shadow .15s;
    width: 100%;
    box-shadow: 0 2px 6px rgba(188,78,156,.35);
}

.btn-search:hover {
    background: linear-gradient(to right, #a8428a, #d60649);
    box-shadow: 0 3px 10px rgba(188,78,156,.45);
}

.btn-search:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ── DEVICE CARD (zakładka serial) ───────────────────────────────────────────*/
.serial-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: start; }
.serial-form-side { display: flex; flex-direction: column; gap: .875rem; }

.device-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    gap: .625rem;
    transition: border-color .25s, box-shadow .25s;
    box-shadow: var(--shadow-sm);
}

.device-card.loaded {
    border-color: var(--grad-mid);
    box-shadow: 0 0 0 3px rgba(224,40,121,.1), var(--shadow-md);
}

.device-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 140px;
    color: var(--dimmer);
    font-size: .78rem;
    text-align: center;
}

.device-card-placeholder svg { opacity: .25; }

.dc-top { display: flex; gap: .875rem; align-items: flex-start; }

.dc-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--surface2);
    border: 1px solid var(--border);
    flex-shrink: 0;
    padding: 6px;
}

.dc-image-placeholder {
    width: 80px;
    height: 80px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dimmer);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.dc-info { flex: 1; min-width: 0; }
.dc-name { font-size: .9rem; font-weight: 700; line-height: 1.3; margin-bottom: .35rem; color: var(--text); }

.dc-row { display: flex; align-items: baseline; gap: .35rem; font-size: .75rem; margin-bottom: .2rem; }
.dc-label { color: var(--dim); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; }
.dc-val { color: var(--muted); }
.dc-val.highlight { background: linear-gradient(to right, #bc4e9c, #f80759); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; font-size: .82rem; }

.warranty-bar {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .5rem .75rem;
}

.warranty-bar-label {
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--dim);
    margin-bottom: .25rem;
}

.warranty-dates {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
}

.warranty-sep { color: var(--dim); }
.warranty-end { font-weight: 700; color: var(--green); }
.warranty-end.expired { color: #f80759; }
.warranty-none { font-size: .78rem; color: var(--muted); font-style: italic; }

/* ── STATS ────────────────────────────────────────────────────────────────────*/
.stats { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.75rem; }

.stat-box {
    flex: 1;
    min-width: 150px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: .875rem 1.125rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon { font-size: 1.1rem; flex-shrink: 0; }
.stat-val { font-size: 1.2rem; font-weight: 700; line-height: 1; color: var(--text); }
.stat-desc { font-size: .7rem; color: var(--muted); margin-top: .15rem; }

/* ── ALERTS ───────────────────────────────────────────────────────────────────*/
.alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: .83rem;
    border: 1px solid;
    line-height: 1.5;
}

.alert-error { background: rgba(224,40,121,.05); border-color: rgba(224,40,121,.3); color: #9b1c6e; }
.alert-info  { background: var(--blue-bg); border-color: rgba(0,96,182,.3); color: var(--blue); }
.alert-dot   { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; margin-top: 5px; }

/* ── RESULTS ──────────────────────────────────────────────────────────────────*/
.results-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: .875rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #bc4e9c, transparent) 1;
}

.results-title  { font-size: .95rem; font-weight: 700; color: var(--text); }
.results-model  { font-size: .8rem; color: var(--muted); }
.results-count  { margin-left: auto; font-size: .72rem; color: var(--dim); background: var(--surface2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 2px; }

/* ── FILTERS ──────────────────────────────────────────────────────────────────*/
.filters { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }

.chip {
    padding: 3px 11px;
    border-radius: 2px;
    border: 1px solid var(--border2);
    font-size: .72rem;
    cursor: pointer;
    color: var(--muted);
    background: var(--surface);
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    transition: all .15s;
}

.chip:hover { border-color: var(--grad-mid); color: var(--grad-mid); background: var(--accent-bg); }
.chip.active { background: linear-gradient(to right, #bc4e9c, #f80759); border-color: transparent; color: #fff; }
.chip.all.active { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }

/* ── TABLE ────────────────────────────────────────────────────────────────────*/
.table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

table { width: 100%; border-collapse: collapse; font-size: .83rem; min-width: 820px; }

thead {
    background: var(--surface2);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #bc4e9c, transparent) 1;
}

th {
    padding: .625rem .875rem;
    text-align: left;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    white-space: nowrap;
}

th.right { text-align: right; }

td {
    padding: .625rem .875rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}

tr:last-child td { border-bottom: none; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: #fafafa; }

/* Rekomendacje – kolorowe paski */
tr.rec-best   td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
tr.rec-better td:first-child { box-shadow: inset 3px 0 0 var(--silver); }
tr.rec-good   td:first-child { box-shadow: inset 3px 0 0 var(--bronze); }
tr.rec-best   { background: #fffdf0; }
tr.rec-better { background: #f8f9fa; }
tr.rec-best:hover  { background: #fffbe0 !important; }
tr.rec-better:hover{ background: #f2f4f5 !important; }

.rec-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.rb-best   { background: rgba(184,134,11,.12); color: #7a5900; border: 1px solid rgba(184,134,11,.3); }
.rb-better { background: rgba(96,112,128,.1);  color: #3d5060; border: 1px solid rgba(96,112,128,.25); }
.rb-good   { background: rgba(139,90,43,.1);   color: #5c3010; border: 1px solid rgba(139,90,43,.25); }

.svc-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 2px;
    font-size: .7rem;
    font-weight: 600;
    white-space: nowrap;
}

.b-onsite  { background: var(--green-bg);  color: var(--green); border: 1px solid rgba(30,138,68,.2); }
.b-depot   { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(179,94,0,.2); }
.b-drive   { background: rgba(248,7,89,.08); color: #c4005c; border: 1px solid rgba(248,7,89,.2); }
.b-premier { background: var(--blue-bg);   color: var(--blue);   border: 1px solid rgba(0,96,182,.2); }
.b-default { background: var(--surface2);  color: var(--muted);  border: 1px solid var(--border); }

.part-code {
    font-size: .75rem;
    color: var(--muted);
    letter-spacing: .04em;
    font-family: 'Courier New', monospace;
}

.price-cell { text-align: right; font-weight: 700; white-space: nowrap; }
.price-amount { color: var(--text); }
.price-currency { color: var(--muted); font-size: .7rem; margin-left: 3px; font-weight: 400; }
.price-on-phone { color: var(--yellow); font-size: .78rem; font-weight: 700; }
.action-cell { text-align: right; white-space: nowrap; }

/* ── BUTTONS ──────────────────────────────────────────────────────────────────*/
.btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    border: 1px solid;
    transition: all .15s;
    text-decoration: none;
    background: transparent;
}

.btn-price {
    border: none;
    color: var(--grad-mid);
    background: transparent;
    position: relative;
    /* gradient border via background-clip */
    background-image: linear-gradient(#fff, #fff), linear-gradient(to right, #bc4e9c, #f80759);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 1px solid transparent;
}

.btn-price:hover {
    background-image: linear-gradient(to right, #bc4e9c, #f80759);
    background-origin: padding-box;
    background-clip: padding-box;
    color: #fff;
    box-shadow: 0 2px 6px rgba(188,78,156,.35);
    border-color: transparent;
}

.btn-price:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

.btn-cart {
    background: linear-gradient(to right, #bc4e9c, #f80759);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 6px rgba(188,78,156,.35);
}

.btn-cart:hover {
    background: linear-gradient(to right, #a8428a, #d60649);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(188,78,156,.45);
}

.btn-cart:disabled { opacity: .5; cursor: not-allowed; }

.btn-ask {
    border-color: var(--border2);
    color: var(--muted);
    background: var(--surface2);
}

.btn-ask:hover { border-color: var(--grad-mid); color: var(--grad-mid); background: var(--accent-bg); }

/* ── SPINNER ─────────────────────────────────────────────────────────────────*/
.spinner {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── WARRANTY SELECT SECTION ─────────────────────────────────────────────────*/
.warranty-select-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    display: none;
    box-shadow: var(--shadow-sm);
}

.warranty-select-section.visible { display: block; }

.warranty-select-inner {
    display: flex;
    gap: .875rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.warranty-select-inner .field-group { flex: 1; min-width: 240px; }

.btn-warranty-search {
    background: linear-gradient(to right, #bc4e9c, #f80759);
    color: #fff;
    border: none;
    padding: .625rem 1.5rem;
    font-family: 'Open Sans', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius);
    transition: opacity .15s, box-shadow .15s;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(188,78,156,.35);
}

.btn-warranty-search:hover {
    background: linear-gradient(to right, #a8428a, #d60649);
    box-shadow: 0 3px 10px rgba(188,78,156,.45);
}

.found-device {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem .875rem;
    background: var(--green-bg);
    border: 1px solid rgba(30,138,68,.2);
    border-radius: var(--radius);
    margin-bottom: .875rem;
}

.found-device-icon { font-size: 1.1rem; }
.found-device-name { font-size: .85rem; font-weight: 600; color: var(--text); }
.found-device-type { font-size: .73rem; color: var(--muted); margin-top: .1rem; }

/* ── LEGEND ───────────────────────────────────────────────────────────────────*/
.legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .625rem;
    margin-bottom: .875rem;
    font-size: .72rem;
    color: var(--muted);
}

/* ── TOAST ────────────────────────────────────────────────────────────────────*/
#toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: .75rem 1.125rem;
    font-size: .83rem;
    max-width: 320px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all .25s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: .625rem;
    pointer-events: none;
    color: var(--text);
}

#toast.show      { transform: translateY(0); opacity: 1; pointer-events: auto; }
#toast.t-success { border-left: 4px solid var(--green); }
#toast.t-error   { border-left: 4px solid #f80759; }
#toast.t-info    { border-left: 4px solid var(--blue); }
#toast-text      { flex: 1; line-height: 1.4; }

/* ── FOOTER ───────────────────────────────────────────────────────────────────*/
footer {
    border-top: 1px solid var(--border);
    padding: .75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .7rem;
    color: var(--muted);
    background: var(--surface);
    box-shadow: 0 -1px 0 var(--border);
}

.file-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-right: .35rem;
    vertical-align: middle;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────────*/
@media (max-width: 768px) {
    .tab-pane.active,
    .tab-pane.active.full-width { display: flex; flex-direction: column; gap: 1.25rem; }
    .serial-panel { grid-template-columns: 1fr; }
    main { padding: 1.25rem 1rem; }
    header { padding: 0 1rem; }
    .header-tag { display: none; }
    .tabs-header .tab-btn span.tab-label { display: none; }
    .warranty-select-inner { flex-direction: column; }
    .btn-warranty-search { width: 100%; }
}


/* ── HELPER: stat-box z gradientowym obramowaniem ───────────────────────────*/
.stat-box-accent {
    border-color: transparent !important;
    background-image: linear-gradient(var(--surface), var(--surface)),
                      linear-gradient(to right, #bc4e9c, #f80759);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 1px solid transparent !important;
    background-color: transparent;
}
.stat-box-accent .stat-val {
    background: linear-gradient(to right, #bc4e9c, #f80759);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}