:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --canvas: #f6f8fb;
  --navy: #0b1220;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --green: #12b76a;
  --green-soft: #ecfdf3;
  --red: #f04438;
  --red-soft: #fef3f2;
  --purple: #7f56d9;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 20px 40px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 0%, rgba(37, 99, 235, .07), transparent 26rem),
    var(--canvas);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); text-decoration: none; }

.app-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 80px; }

.app-nav {
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  color: white;
  background: rgba(11, 18, 32, .97);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: white; font-size: 20px; font-weight: 750; letter-spacing: -.4px; }
.brand:hover { color: white; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: white; background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 8px 18px rgba(37,99,235,.32); }
.brand-tagline { margin-left: 18px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.16); color: #98a2b3; font-size: 13px; }
.user-menu { display: flex; align-items: center; gap: 9px; padding: 8px 12px; color: #e4e7ec; border-radius: 12px; font-size: 14px; font-weight: 600; }
.user-menu:hover { color: white; background: rgba(255,255,255,.07); }
.user-avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: #dbeafe; background: #1e3a5f; }
.app-dropdown { margin-top: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.app-dropdown .dropdown-item { padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.app-dropdown .fa { width: 22px; color: #98a2b3; }

.eyebrow { display: block; margin-bottom: 8px; color: var(--primary); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-danger { color: var(--red); }
.dashboard-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.dashboard-header h1, .detail-heading h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 42px); font-weight: 760; letter-spacing: -.045em; }
.dashboard-header p, .detail-heading p { margin: 0; color: var(--muted); font-size: 16px; }

.btn { border-radius: 10px; font-weight: 650; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn-primary { border-color: var(--primary); background: var(--primary); box-shadow: 0 6px 14px rgba(37,99,235,.2); }
.btn-primary:hover, .btn-primary:focus { border-color: var(--primary-dark); background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 9px 20px rgba(37,99,235,.25); }
.btn-add { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; white-space: nowrap; }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 42px; }
.summary-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.dashboard-summary-filter { color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.dashboard-summary-filter:hover, .dashboard-summary-filter:focus { border-color: #84adff; color: var(--ink); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dashboard-summary-filter.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.10), var(--shadow-sm); }
.summary-card > div { display: flex; flex-direction: column; }
.summary-card strong { font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
.summary-card span:not(.summary-icon) { margin-top: 3px; color: var(--muted); font-size: 13px; }
.summary-icon { display: grid; flex: 0 0 46px; height: 46px; place-items: center; border-radius: 13px; font-size: 18px; }
.summary-icon-green { color: #087443; background: var(--green-soft); }
.summary-icon-blue { color: var(--primary); background: #eff6ff; }
.summary-icon-purple { color: var(--purple); background: #f4f3ff; }

.content-section { margin-top: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.section-heading h2 { margin: 0 0 4px; font-size: 21px; font-weight: 720; letter-spacing: -.025em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.dashboard-controls { display: flex; margin: 0 0 22px; gap: 12px; align-items: flex-end; }
.dashboard-controls label { min-width: 190px; margin: 0; }
.dashboard-controls label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.dashboard-controls .form-control { height: 42px; border-color: var(--line); border-radius: 10px; font-size: 13px; }
.dashboard-results { transition: opacity .16s ease; }
.dashboard-results.is-loading { opacity: .45; pointer-events: none; }
.admin-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); background: #f8fafc; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { margin-top: 3px; color: var(--muted); }
.admin-table a { color: var(--primary); font-weight: 650; }
.metric-rate { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.metric-good { color: #067647; background: #ecfdf3; }
.metric-warning { color: #b54708; background: #fffaeb; }
.metric-bad { color: #b42318; background: #fef3f2; }
.metric-error { width: 34%; min-width: 250px; max-width: 390px; color: var(--muted); }
.metric-error-details summary { display: grid; gap: 6px; cursor: pointer; list-style: none; }
.metric-error-details summary::-webkit-details-marker { display: none; }
.metric-error-details summary > span:first-child {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.metric-error-action { color: var(--primary); font-size: 11px; font-weight: 700; }
.metric-error-action::after { content: " bekijken"; }
.metric-error-details[open] .metric-error-action::after { content: " verbergen"; }
.metric-error-details pre {
  max-height: 220px;
  margin: 10px 0 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #475467;
  background: #f8fafc;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin-empty { padding: 28px !important; color: var(--muted); text-align: center !important; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-4px); border-color: #d0d5dd; box-shadow: var(--shadow-lg); }
.product-visual { position: relative; height: 220px; overflow: hidden; background: #f2f4f7; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-visual img { transform: scale(1.025); }
.product-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: #98a2b3; background: linear-gradient(135deg, #f8fafc, #eef2f6); }
.product-placeholder .fa { font-size: 30px; }
.status-pill { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; box-shadow: 0 2px 8px rgba(16,24,40,.08); }
.status-pill > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-success { color: #087443; background: rgba(236,253,243,.94); }
.status-danger { color: #b42318; background: rgba(254,243,242,.94); }
.status-neutral { color: #475467; background: rgba(249,250,251,.94); }
.delete-form { position: absolute; right: 12px; top: 12px; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 10px; color: #667085; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(16,24,40,.1); cursor: pointer; transition: color .16s, background .16s; }
.icon-button:hover { color: var(--red); background: var(--red-soft); }
.product-body { padding: 18px; }
.product-title-row { display: flex; min-height: 48px; align-items: flex-start; gap: 8px; }
.product-name { display: block; flex: 1; color: var(--ink); font-size: 16px; font-weight: 680; line-height: 1.45; }
.product-name:hover { color: var(--primary); }
.product-name .fa { margin-left: 4px; color: #98a2b3; font-size: 11px; }
.rename-button { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 9px; color: #98a2b3; background: #f8fafc; cursor: pointer; transition: color .16s, background .16s; }
.rename-button:hover { color: var(--primary); background: #eff6ff; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0; }
.offer-summary { margin: -4px 0 16px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }
.offer-summary-heading { display: flex; margin-bottom: 7px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.offer-summary-heading strong { color: var(--ink); }
.add-offer-button { padding: 2px 5px; border: 0; color: var(--primary); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.offer-row { display: flex; padding: 7px 6px; align-items: center; justify-content: space-between; gap: 8px; border-radius: 7px; color: #475467; font-size: 11px; }
.offer-row:hover { color: var(--primary); background: white; }
.offer-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-row .fa { margin-right: 4px; color: #98a2b3; }
.offer-row em { margin-left: 5px; padding: 2px 5px; border-radius: 999px; color: #067647; background: #ecfdf3; font-size: 9px; font-style: normal; font-weight: 700; }
.offer-row strong { flex: 0 0 auto; color: var(--ink); font-size: 11px; }
.product-price { color: var(--ink); font-size: 27px; font-weight: 760; letter-spacing: -.035em; }
.product-price small { margin-right: 2px; color: var(--muted); font-size: 15px; vertical-align: 6px; }
.price-pending { color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.price-unavailable { color: var(--muted); font-size: 15px; font-weight: 650; letter-spacing: 0; }
.history-link { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--primary); background: #eff6ff; }
.history-link:hover { background: #dbeafe; }
.product-sparkline { position: relative; display: block; height: 54px; margin: -4px 0 14px; overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, rgba(239,246,255,.7), rgba(255,255,255,0)); }
.product-sparkline canvas { width: 100% !important; height: 54px !important; }
.product-sparkline-empty { display: flex; height: 40px; margin: -4px 0 14px; align-items: center; color: #98a2b3; font-size: 11px; }
.price-insights { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 12px; gap: 8px; }
.price-insights > div { padding: 9px 10px; border-radius: 9px; background: #f8fafc; }
.price-insights span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; }
.price-insights strong { color: var(--ink); font-size: 12px; }
.price-insights .price-change-down { color: #067647; }
.price-insights .price-change-up { color: var(--red); }
.price-insights .fa { margin-right: 2px; font-size: 10px; }
.target-price-row { display: flex; margin: 0 0 12px; padding: 9px 10px; align-items: center; gap: 7px; border: 1px solid #dbeafe; border-radius: 10px; color: #475467; background: #f8fbff; font-size: 11px; }
.target-price-row > span { display: inline-flex; align-items: center; gap: 5px; }
.target-price-row strong { margin-left: auto; color: var(--primary); font-size: 12px; }
.target-price-row em { color: #067647; font-size: 10px; font-style: normal; font-weight: 700; }
.target-price-reached { border-color: #abefc6; background: var(--green-soft); }
.target-price-reached strong { color: #067647; }
.updated-at { padding-top: 14px; border-top: 1px solid #f2f4f7; color: #98a2b3; font-size: 12px; }
.updated-at .fa { margin-right: 5px; }
.retry-form, .check-now-form { display: inline-block; margin: 14px 6px 0 0; }
.retry-form .btn, .check-now-form .btn { border-radius: 10px; font-weight: 700; }

.empty-state { padding: 62px 24px; text-align: center; border: 1px dashed #cbd5e1; border-radius: 20px; background: rgba(255,255,255,.55); }
.empty-state > span { display: grid; width: 62px; height: 62px; margin: 0 auto 18px; place-items: center; border-radius: 18px; color: var(--primary); background: #eff6ff; font-size: 25px; }
.empty-state h3 { margin-bottom: 8px; font-size: 20px; }
.empty-state p { margin: 0 auto 22px; color: var(--muted); }
.muted-section { margin-top: 50px; }
.paused-list { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.paused-item { display: flex; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid #f2f4f7; }
.paused-item:last-child { border-bottom: 0; }
.paused-actions { display: flex; align-items: center; gap: 12px; }

.modal-backdrop.show { opacity: .58; }
.app-modal { overflow: hidden; border: 0; border-radius: 20px; box-shadow: 0 30px 70px rgba(16,24,40,.24); }
.app-modal .modal-header { align-items: flex-start; padding: 24px 26px 16px; border-bottom: 0; }
.app-modal .modal-title { margin: 0; font-size: 24px; font-weight: 740; }
.app-modal .modal-body { padding: 8px 26px 28px; }
.app-modal .close { padding: 8px; border-radius: 10px; }
.modal-hint { color: var(--muted); font-size: 12px; }
.optional-label { color: #98a2b3; font-size: 11px; font-weight: 500; }
.target-price-input { position: relative; }
.target-price-input > span { position: absolute; z-index: 1; left: 13px; top: 50%; color: var(--muted); transform: translateY(-50%); }
.target-price-input .form-control { padding-left: 30px; }
.discount-helper { margin: 2px 0 22px; }
.discount-helper-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 650; }
.discount-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.discount-option { display: flex; padding: 9px 5px; flex-direction: column; align-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; cursor: pointer; }
.discount-option:hover, .discount-option:focus { border-color: #84adff; color: var(--primary); background: #eff6ff; outline: 0; }
.discount-option.active { border-color: var(--primary); color: var(--primary); background: #eff6ff; box-shadow: 0 0 0 2px rgba(37,99,235,.08); }
.discount-option strong { font-size: 12px; }
.discount-option span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.custom-target-field { margin: 0 0 16px; }
.custom-target-field label { color: var(--ink); font-size: 13px; font-weight: 600; }
.delete-confirmation-copy { margin: 0 0 24px; color: var(--muted); line-height: 1.65; }
.delete-confirmation-copy strong { color: var(--ink); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions .btn { min-width: 108px; }
.btn-danger { border-color: var(--red); background: var(--red); }
.btn-danger:hover, .btn-danger:focus { border-color: #d92d20; background: #d92d20; }

.form-group { margin-bottom: 18px; }
.form-group label { margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 650; }
.form-control { min-height: 46px; padding: 10px 13px; border: 1px solid #d0d5dd; border-radius: 10px; color: var(--ink); background: white; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.form-control:focus { border-color: #84adff; box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.form-text { font-size: 11px; line-height: 1.45; }
.invalid-feedback { font-size: 12px; }

.auth-layout { display: grid; min-height: calc(100vh - 168px); grid-template-columns: minmax(0, 1.1fr) minmax(360px, 480px); align-items: center; gap: clamp(50px, 9vw, 120px); }
.auth-intro h1 { max-width: 620px; margin: 0 0 18px; font-size: clamp(42px, 6vw, 68px); font-weight: 780; letter-spacing: -.06em; line-height: 1.02; }
.auth-intro > p { max-width: 550px; margin: 0 0 34px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.feature-list { display: grid; gap: 18px; }
.feature-list > div { display: flex; align-items: center; gap: 14px; }
.feature-list > div > span { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--primary); background: #eff6ff; }
.feature-list p { display: flex; margin: 0; flex-direction: column; }
.feature-list strong { font-size: 14px; }
.feature-list small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.auth-card { padding: 32px; border: 1px solid rgba(228,231,236,.9); border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); }
.auth-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.auth-icon { display: grid; flex: 0 0 48px; height: 48px; place-items: center; border-radius: 14px; color: white; background: linear-gradient(135deg, #3b82f6, #2563eb); font-size: 18px; }
.auth-card-header h2 { margin: 0 0 4px; font-size: 24px; font-weight: 740; letter-spacing: -.03em; }
.auth-card-header p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-error { display: flex; gap: 11px; margin: -4px 0 20px; padding: 13px 14px; border: 1px solid #fecdca; border-radius: 12px; color: #912018; background: #fff6f5; }
.auth-error-icon { display: grid; flex: 0 0 28px; height: 28px; place-items: center; border-radius: 9px; color: #b42318; background: #fee4e2; }
.auth-error strong, .auth-error span { display: block; }
.auth-error strong { margin: 1px 0 2px; font-size: 13px; font-weight: 720; }
.auth-error div > span { color: #b42318; font-size: 12px; line-height: 1.45; }
.auth-card .btn-lg { padding: 12px 18px; font-size: 15px; }
.auth-card .btn .fa { margin-left: 6px; }
.auth-footer { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.auth-footer a { font-weight: 650; }
.auth-highlight { display: inline-flex; padding: 16px 18px; flex-direction: column; border: 1px solid #abefc6; border-radius: 14px; color: #067647; background: var(--green-soft); }
.auth-highlight span { margin-top: 2px; font-size: 13px; }
.narrow-page { width: min(560px, 100%); margin: 20px auto 0; }
.settings-card { margin-top: 20px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 24px; align-items: start; }
.profile-form-card { margin: 0; }
.profile-sidebar { display: grid; gap: 18px; }
.profile-sidebar .content-section { margin: 0; }
.profile-facts { margin: 18px 0 0; }
.profile-facts > div { display: flex; padding: 12px 0; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.profile-facts > div:last-child { border-bottom: 0; }
.profile-facts dt { color: var(--muted); font-size: 12px; font-weight: 500; }
.profile-facts dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 720; }
.profile-security-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.profile-security-card h3 { margin: 0 0 4px; font-size: 16px; }
.profile-security-card p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-security-card .btn { grid-column: 1 / -1; }
.profile-danger-card { border-color: #fecdca; background: #fffafa; }
.profile-danger-card h3 { margin: 10px 0 6px; color: #912018; font-size: 16px; }
.profile-danger-card p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-icon-danger { color: #b42318; background: #fef3f2; }
.delete-account-warning { margin-bottom: 22px; padding: 14px 16px; border: 1px solid #fecdca; border-radius: 12px; color: #7a271a; background: #fff6f5; font-size: 13px; }
.delete-account-warning strong { display: block; margin-bottom: 7px; }
.delete-account-warning ul { margin: 0; padding-left: 18px; }
.delete-account-warning li + li { margin-top: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }

.detail-page { margin-top: 4px; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 26px 0 24px; }
.detail-icon { display: grid; flex: 0 0 64px; height: 64px; place-items: center; border-radius: 18px; color: var(--primary); background: #eff6ff; font-size: 24px; }
.price-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.price-stats > div { display: flex; padding: 18px 20px; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.price-stats span { margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.price-stats strong { color: var(--ink); font-size: 23px; letter-spacing: -.035em; }
.price-stats .stat-positive { color: #079455; }
.chart-card { overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }
.chart-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.chart-header h2 { margin: 0 0 3px; font-size: 18px; font-weight: 740; }
.chart-header p { margin: 0; color: var(--muted); font-size: 12px; }
.chart-legend { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
.chart-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px #eff6ff; }
.price-chart-wrap { position: relative; height: 390px; }
.chart-empty { padding: 70px 20px; color: var(--muted); text-align: center; }
.chart-empty .fa { margin-bottom: 15px; color: #b2bdd0; font-size: 34px; }
.chart-empty h2 { margin-bottom: 7px; color: var(--ink); font-size: 18px; }
.chart-empty p { margin: 0; }
.app-message { border: 0; border-radius: 12px; box-shadow: var(--shadow-sm); }

@media (max-width: 900px) {
  .product-grid, .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-tip { grid-column: span 2; }
  .auth-layout { grid-template-columns: 1fr; gap: 38px; padding-top: 10px; }
  .auth-intro h1 { font-size: 48px; }
  .feature-list { display: none; }
  .admin-summary-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .app-shell { width: min(100% - 28px, 1180px); padding: 30px 0 60px; }
  .app-nav { min-height: 64px; padding: 0 14px; }
  .dashboard-header { align-items: stretch; flex-direction: column; }
  .dashboard-header h1 { font-size: 32px; }
  .btn-add { justify-content: center; }
  .summary-grid, .product-grid { grid-template-columns: 1fr; }
  .price-stats { grid-template-columns: 1fr; }
  .chart-card { padding: 18px 14px; }
  .price-chart-wrap { height: 320px; }
  .summary-tip { grid-column: auto; }
  .auth-layout { min-height: auto; }
  .auth-intro h1 { font-size: 39px; }
  .auth-intro > p { font-size: 16px; }
  .auth-card { padding: 24px 20px; border-radius: 18px; }
  .product-visual { height: 240px; }
  .detail-heading { align-items: flex-start; }
  .detail-icon { display: none; }
  .discount-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-controls { align-items: stretch; flex-direction: column; }
  .dashboard-controls label { width: 100%; min-width: 0; }
}
