:root {
  --ink: #20243a;
  --ink-soft: #3b4056;
  --muted: #737991;
  --muted-light: #a0a5b6;
  --line: #e4e7ef;
  --line-strong: #d7dbe6;
  --surface: #ffffff;
  --canvas: #f5f6fa;
  --canvas-deep: #eef0f6;
  --navy: #2f396b;
  --navy-deep: #28315f;
  --navy-light: #3c477d;
  --primary: #5b64d8;
  --primary-dark: #4751c7;
  --primary-soft: #eef0ff;
  --blue: #4f91e8;
  --blue-soft: #edf5ff;
  --violet: #7868dd;
  --violet-soft: #f1efff;
  --amber: #bd7416;
  --amber-soft: #fff5e4;
  --red: #cf4c64;
  --red-soft: #fff0f3;
  --green: #268966;
  --green-soft: #eaf7f1;
  --shadow-sm: 0 1px 2px rgba(31, 36, 58, .03), 0 4px 14px rgba(31, 36, 58, .035);
  --shadow-md: 0 18px 50px rgba(32, 36, 58, .1);
  --radius: 12px;
  --radius-sm: 8px;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  color-scheme: light;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary-dark); }

/* Brand and application frame */
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(145deg, #757deb, #525bcf); color: white;
  font-size: 23px; font-weight: 800; font-style: italic; line-height: 1;
  box-shadow: 0 8px 20px rgba(16, 22, 64, .2);
}
.brand-name { display: block; color: white; font-size: 20px; font-weight: 750; line-height: .92; letter-spacing: -.045em; text-transform: lowercase; }
.brand-subtitle { display: block; margin-top: 5px; color: #aeb5d5; font-size: 9px; font-weight: 650; line-height: 1; letter-spacing: .11em; text-transform: uppercase; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar {
  position: sticky; z-index: 30; top: 0; display: flex; flex-direction: column; height: 100vh;
  padding: 22px 15px 17px; overflow-y: auto; color: #e4e7f5;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: inset -1px 0 rgba(255, 255, 255, .04);
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 7px; }
.sidebar-close { display: none; border: 0; padding: 4px; color: white; background: transparent; font-size: 26px; cursor: pointer; }
.workspace-chip {
  display: flex; align-items: center; gap: 10px; margin: 25px 3px 22px; padding: 11px 10px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 9px; background: rgba(255, 255, 255, .055);
}
.workspace-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; background: #6670d8; color: white; font-size: 10px; font-weight: 800; }
.workspace-chip small, .workspace-chip strong { display: block; }
.workspace-chip small { margin-bottom: 3px; color: #9fa7c9; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.workspace-chip strong { max-width: 130px; overflow: hidden; color: #f7f8ff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: grid; gap: 3px; }
.nav-label { padding: 0 12px 7px; color: #929abd; font-size: 9px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 9px 12px;
  border-radius: 8px; color: #bfc5df; text-decoration: none; font-size: 13px; font-weight: 600;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.nav a:hover { color: white; background: rgba(255, 255, 255, .065); }
.nav a.active { color: white; background: #5963ca; box-shadow: 0 7px 18px rgba(20, 25, 67, .18); }
.nav a.active::before { content: ""; position: absolute; left: -15px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #aeb4ff; }
.nav-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.sidebar-spacer { flex: 1; min-height: 28px; }
.sidebar-note { display: flex; gap: 9px; margin: 0 3px 13px; padding: 12px 10px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 9px; background: rgba(255, 255, 255, .04); }
.sidebar-note-icon { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid #8991c5; border-radius: 50%; color: #cbd0ed; font-size: 11px; font-weight: 800; }
.sidebar-note strong { display: block; color: #e9ebf7; font-size: 10px; }
.sidebar-note p { margin: 4px 0 0; color: #9fa7c7; font-size: 9px; line-height: 1.45; }
.sidebar-foot { margin: 0; padding: 0 8px; color: #747da5; font-size: 9px; }
.nav-backdrop { display: none; }

.main { min-width: 0; padding: 0 clamp(22px, 3vw, 45px) 52px; }
.topbar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 112px; margin: 0 calc(clamp(22px, 3vw, 45px) * -1) 0; padding: 20px clamp(22px, 3vw, 45px);
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px);
}
.heading-wrap { display: flex; align-items: center; min-width: 0; }
.page-heading { min-width: 0; }
.breadcrumb { display: block; margin-bottom: 7px; color: #969bad; font-size: 10px; font-weight: 600; }
.breadcrumb span { margin: 0 5px; color: #c1c4ce; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: clamp(22px, 2.3vw, 29px); font-weight: 720; line-height: 1.1; letter-spacing: -.035em; }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.mobile-nav-toggle { display: none; }
.top-actions { display: flex; align-items: center; gap: 15px; }
.freshness { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9ba0b0; }
.status-dot.good { background: #34a878; box-shadow: 0 0 0 4px rgba(52, 168, 120, .11); }
.status-dot.warn { background: #dc941f; box-shadow: 0 0 0 4px rgba(220, 148, 31, .11); }
.status-dot.bad { background: #d95669; box-shadow: 0 0 0 4px rgba(217, 86, 105, .11); }
.account-chip { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 800; }
.account-copy { min-width: 78px; }
.account-copy strong, .account-copy small { display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { color: var(--ink-soft); font-size: 10px; }
.account-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.account-chevron { color: #a2a6b5; font-size: 13px; }
.page-content { width: 100%; max-width: 1580px; margin: 0 auto; padding-top: 22px; }

/* Forms and shared controls */
.form-stack { display: grid; gap: 17px; }
.form-stack label, .field { display: grid; gap: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 680; }
input, select {
  width: 100%; min-height: 43px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px;
  outline: none; color: var(--ink); background: white; transition: border-color .16s, box-shadow .16s;
}
input::placeholder { color: #a6aab8; }
input:focus, select:focus { border-color: #7b83df; box-shadow: 0 0 0 3px rgba(91, 100, 216, .12); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 80px; }
.password-toggle { position: absolute; right: 6px; top: 6px; height: 31px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--primary-soft); color: var(--primary-dark); font-size: 10px; font-weight: 750; cursor: pointer; }
.form-stack label.remember-option { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); cursor: pointer; }
.remember-option input { flex: 0 0 17px; width: 17px; min-height: 17px; height: 17px; margin: 1px 0 0; padding: 0; accent-color: var(--primary); }
.remember-option span { min-width: 0; }
.remember-option strong, .remember-option small { display: block; }
.remember-option strong { font-size: 11px; line-height: 1.35; }
.remember-option small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.45; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 720; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--primary); box-shadow: 0 7px 17px rgba(91, 100, 216, .2); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: var(--ink-soft); background: white; border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(31, 36, 58, .025); }
.button-secondary:hover { border-color: #bfc4d2; background: #fafaff; }
.button-danger { color: var(--red); background: var(--red-soft); border-color: #f5ccd4; }
.button-small { min-height: 36px; padding: 7px 12px; font-size: 11px; }

.filters {
  display: grid; grid-template-columns: minmax(185px, 1.2fr) minmax(140px, .85fr) repeat(2, minmax(135px, .7fr)) auto;
  gap: 11px; align-items: end; margin-bottom: 18px; padding: 14px 15px; border: 1px solid var(--line);
  border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm);
}
.filter-bar { grid-template-columns: minmax(155px, .8fr) minmax(185px, 1.2fr) minmax(125px, .7fr) repeat(2, minmax(130px, .65fr)) auto; }
.filter-intro { display: flex; align-items: center; gap: 9px; min-height: 42px; }
.filter-intro strong, .filter-intro small { display: block; }
.filter-intro strong { color: var(--ink-soft); font-size: 11px; }
.filter-intro small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.filter-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 18px; font-weight: 700; }
.filters .field { gap: 5px; color: #8a8fa2; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.filters select, .filters input { min-height: 39px; padding-top: 8px; padding-bottom: 8px; color: var(--ink-soft); font-size: 11px; letter-spacing: normal; text-transform: none; }
.filter-submit { min-height: 39px; }
.invoice-filters { grid-template-columns: repeat(4, minmax(140px, 1fr)); }
.invoice-filters .filter-search { grid-column: span 2; }
.filter-advanced-toggle { display: none; }

.notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; line-height: 1.5; }
.notice strong { margin-right: 4px; }
.notice-error { color: #a53449; background: var(--red-soft); border-color: #f4cbd3; }
.notice-success { color: #196b4d; background: var(--green-soft); border-color: #c8eadc; }
.notice-warning { color: #956012; background: var(--amber-soft); border-color: #f2d9ac; }

/* Dashboard and cards */
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.dashboard-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.comparison-context { display: flex; align-items: center; gap: 9px; width: max-content; max-width: 100%; margin: 0 0 -3px auto; color: var(--muted); }
.comparison-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: var(--primary-soft); color: var(--primary); font-size: 12px; }
.comparison-context strong, .comparison-context small { display: block; }
.comparison-context strong { color: var(--ink-soft); font-size: 9px; }
.comparison-context small { margin-top: 2px; font-size: 8px; }
.kpi { min-width: 0; min-height: 152px; padding: 17px 18px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.metric-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.metric-blue { color: #387bc7; background: var(--blue-soft); }
.metric-red { color: var(--red); background: var(--red-soft); }
.metric-violet { color: var(--violet); background: var(--violet-soft); }
.metric-green { color: var(--green); background: var(--green-soft); }
.kpi-change { padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.kpi-change.positive { color: var(--green); background: var(--green-soft); }
.kpi-change.negative { color: var(--red); background: var(--red-soft); }
.kpi-change.neutral { color: var(--primary-dark); background: var(--primary-soft); }
.kpi-label { display: block; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.kpi-value { display: block; margin-top: 6px; overflow: hidden; color: var(--ink); font-size: clamp(25px, 2.35vw, 32px); font-weight: 730; line-height: 1.15; letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi-money { font-size: clamp(20px, 1.75vw, 27px); }
.kpi-meta { display: block; margin-top: 7px; overflow: hidden; color: var(--muted-light); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 14px; margin-top: 14px; }
.dashboard-primary-grid { grid-template-columns: minmax(0, 1.75fr) minmax(290px, .72fr); }
.dashboard-secondary-grid { grid-template-columns: minmax(0, 1.35fr) minmax(240px, .72fr) minmax(240px, .72fr); }
.panel { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.panel-header h2 { margin: 2px 0 0; color: var(--ink); font-size: 15px; font-weight: 710; letter-spacing: -.02em; }
.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.section-eyebrow { display: block; margin-bottom: 4px; color: #a0a4b4; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.panel-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--primary); font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.panel-link:hover { color: var(--primary-dark); }
.panel-link span { font-size: 14px; line-height: .7; }
.chart-summary { display: flex; flex-wrap: wrap; gap: 18px; margin: -3px 0 5px; color: var(--muted); font-size: 9px; }
.chart-summary span { display: inline-flex; align-items: center; gap: 6px; }
.chart-summary strong { margin-left: 3px; color: var(--ink-soft); font-size: 10px; }
.legend-swatch { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--primary); }
.legend-swatch.refund { background: #e3a13d; }
.chart-canvas { position: relative; height: 270px; margin-top: 10px; }
.chart-fallback { margin-top: 11px; }
.chart-fallback summary { color: var(--muted); font-size: 9px; cursor: pointer; }
.chart-fallback[open] summary { margin-bottom: 11px; }
.daily-bars { display: grid; gap: 8px; max-height: 330px; padding-right: 4px; overflow-y: auto; }
.daily-row { display: grid; grid-template-columns: 45px minmax(80px, 1fr) 105px; gap: 9px; align-items: center; color: var(--muted); font-size: 9px; }
.daily-value { text-align: right; font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 7px; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: #eceef5; }
progress::-webkit-progress-bar { background: #eceef5; border-radius: 99px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #737be4, var(--primary)); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--primary); border-radius: 99px; }

.score-badge { padding: 4px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.score-value { margin: 21px 0 19px; text-align: center; }
.score-value strong { display: block; color: var(--ink); font-size: 39px; font-weight: 730; letter-spacing: -.06em; }
.score-value span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.score-progress { height: 9px; }
.score-progress::-webkit-progress-value { background: linear-gradient(90deg, #4d91e4, #5e67d9, #3ba67b); }
.score-scale { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted-light); font-size: 8px; }
.score-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 20px; }
.score-facts div { padding: 10px 7px; border-radius: 8px; background: var(--canvas); text-align: center; }
.score-facts span { display: block; color: var(--muted); font-size: 8px; }
.score-facts strong { display: block; margin-top: 5px; color: var(--ink); font-size: 14px; }
.text-danger { color: var(--red) !important; }
.text-success { color: var(--green) !important; }
.score-note { display: flex; align-items: flex-start; gap: 6px; margin: 15px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.score-note span { display: grid; place-items: center; flex: 0 0 15px; width: 15px; height: 15px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 8px; font-weight: 800; }

.rank-list, .health-list { display: grid; gap: 11px; }
.rank-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.rank-number { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: var(--canvas); color: var(--muted); font-size: 9px; font-weight: 800; }
.rank-name { overflow: hidden; color: var(--ink-soft); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.rank-value { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.rank-item progress { grid-column: 2 / 4; height: 4px; }
.buyer-highlight { display: grid; place-items: center; min-height: 100px; margin-bottom: 8px; border-radius: 9px; background: linear-gradient(135deg, var(--violet-soft), #f8f7ff); }
.buyer-highlight strong { color: var(--violet); font-size: 26px; letter-spacing: -.04em; }
.buyer-highlight span { margin-top: -28px; color: var(--muted); font-size: 8px; }
.detail-list { display: grid; }
.detail-row { display: grid; grid-template-columns: minmax(130px, 1fr) auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid #eff0f5; color: var(--ink-soft); font-size: 10px; }
.detail-row:last-child { border-bottom: 0; }
.detail-label { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.detail-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot-violet { background: var(--violet); }
.dot-blue { background: var(--blue); }
.dot-gray { background: #c4c8d3; }
.payment-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; background: var(--blue-soft); color: #3f7fc8; font-size: 9px; font-weight: 800; }
.compact-empty { padding: 34px 15px !important; }

/* Sales analytics */
.sales-primary-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sales-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.sales-stat { min-width: 0; padding: 14px 15px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow-sm); }
.sales-stat > span, .sales-stat small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sales-stat > span { color: var(--muted); font-size: 9px; font-weight: 650; }
.sales-stat strong { display: block; margin-top: 6px; overflow: hidden; color: var(--ink); font-size: 17px; font-weight: 720; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sales-stat small { margin-top: 4px; color: var(--muted-light); font-size: 8px; }
.sales-overview-grid { grid-template-columns: minmax(0, 1.65fr) minmax(270px, .65fr); }
.highlight-list { display: grid; gap: 7px; }
.highlight-list > div { padding: 12px; border: 1px solid #eceef4; border-radius: 9px; background: #fbfbfe; }
.highlight-list span, .highlight-list small { display: block; color: var(--muted); font-size: 8px; }
.highlight-list strong { display: block; margin: 5px 0 3px; color: var(--ink); font-size: 13px; }
.sales-insight-grid { grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr); }
.weekday-list { display: grid; gap: 7px; }
.weekday-row { display: grid; grid-template-columns: 125px minmax(100px, 1fr) 135px; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f0f1f5; }
.weekday-row:last-child { border-bottom: 0; }
.weekday-row span strong, .weekday-row span small { display: block; }
.weekday-row span strong { color: var(--ink-soft); font-size: 10px; }
.weekday-row span small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.weekday-value { text-align: right; }
.summary-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.summary-pills span { padding: 5px 8px; border-radius: 7px; color: var(--primary-dark); background: var(--primary-soft); font-size: 8px; font-weight: 700; white-space: nowrap; }
.product-analytics-panel, .payment-analytics-panel { margin-top: 14px; }
.product-analytics-panel table { min-width: 820px; }
.share-cell { display: grid; grid-template-columns: 65px auto; gap: 7px; align-items: center; min-width: 105px; }
.share-cell small { color: var(--muted); font-size: 8px; }
.share-cell progress { height: 5px; }
.payment-analytics-list { display: grid; }
.payment-analytics-row { display: grid; grid-template-columns: 30px minmax(130px, .8fr) minmax(150px, 1.2fr) minmax(150px, auto); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eff0f5; }
.payment-analytics-row:last-child { border-bottom: 0; }
.payment-name strong, .payment-name small, .payment-progress small, .payment-values strong, .payment-values small { display: block; }
.payment-name strong, .payment-values strong { color: var(--ink-soft); font-size: 10px; }
.payment-name small, .payment-progress small, .payment-values small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.payment-progress progress { height: 5px; }
.payment-values { text-align: right; font-variant-numeric: tabular-nums; }

/* Notification preferences */
.notification-settings { margin-bottom: 14px; }
.settings-heading { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.mail-settings-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 16px; font-weight: 800; }
.notification-form { display: grid; gap: 13px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fdfdff; cursor: pointer; }
.setting-row > span:not(.switch) { min-width: 0; }
.setting-row strong, .setting-row small { display: block; }
.setting-row strong { color: var(--ink-soft); font-size: 10px; }
.setting-row small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.setting-master { border-color: #daddf5; background: var(--primary-soft); }
.setting-master strong { color: var(--primary-dark); font-size: 11px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.setting-option { min-height: 78px; }
.weekly-setting { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; border-color: #d9dcef; background: linear-gradient(135deg, #f7f7ff, #fbfbfe); }
.weekly-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: white; background: var(--primary); font-size: 14px; font-weight: 800; }
.switch { position: relative; display: inline-flex; flex: 0 0 37px; width: 37px; height: 21px; }
.switch input { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; opacity: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #c9cdd8; transition: background .16s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(30, 34, 54, .25); transition: transform .16s; }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 3px solid rgba(91, 100, 216, .22); outline-offset: 2px; }
.settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.settings-actions p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.settings-actions .button { flex: 0 0 auto; }
.alert-history { margin-top: 14px; }

/* Tables and secondary pages */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.panel .table-wrap { margin: 0 -1px -1px; box-shadow: none; }
table { width: 100%; border-collapse: collapse; color: var(--ink-soft); font-size: 11px; }
th { padding: 11px 12px; background: #fafafd; color: #898ea1; text-align: left; font-size: 8px; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px; border-top: 1px solid #eef0f5; vertical-align: middle; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fafaff; }
.money { font-weight: 680; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-success, .status-active, .status-healthy { color: var(--green); background: var(--green-soft); }
.status-error, .status-failed, .status-blocked, .status-persist_failed, .status-disabled, .status-offline { color: var(--red); background: var(--red-soft); }
.status-processing, .status-sending, .status-retry, .status-pending_pairing, .status-degraded, .status-stale, .status-unknown { color: var(--amber); background: var(--amber-soft); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 10px; }
.pagination-actions { display: flex; gap: 7px; }
.data-panel { padding-bottom: 15px; }
.data-panel > .table-wrap { border-radius: 9px; }
.list-header { align-items: center; }
.list-actions { display: flex; align-items: center; gap: 8px; }
.result-count { display: inline-flex; align-items: center; min-height: 25px; padding: 5px 8px; border-radius: 7px; background: var(--primary-soft); color: var(--primary-dark); font-size: 9px; font-weight: 700; white-space: nowrap; }
.export-button { gap: 6px; min-height: 31px; }
.export-button span { font-size: 14px; line-height: 1; }
.result-danger { color: var(--red); background: var(--red-soft); }
.table-date { white-space: nowrap; }
.receipt-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.receipt-action { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: white; color: var(--primary-dark); font-size: 9px; font-weight: 720; text-decoration: none; }
.receipt-action:hover { border-color: var(--primary); background: var(--primary-soft); }
.receipt-action-verify { color: var(--green); border-color: #bfe5d8; background: var(--green-soft); }
.receipt-action-pdf { color: white; border-color: var(--primary); background: var(--primary); }
.receipt-action-pdf:hover { color: white; background: var(--primary-dark); }

.empty { padding: 48px 22px; text-align: center; color: var(--muted); }
.empty-mark { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 20px; font-weight: 800; }
.empty h2, .empty h3 { margin: 0 0 7px; color: var(--ink); font-size: 17px; }
.empty p { max-width: 480px; margin: auto; font-size: 11px; line-height: 1.6; }
.section-stack { display: grid; gap: 14px; }
.health-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fdfdff; }
.health-identity { display: flex; align-items: center; gap: 11px; }
.source-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 800; }
.health-card h3 { margin: 0; color: var(--ink); font-size: 13px; }
.health-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.health-stale-note { grid-column: 1 / -1; padding: 10px 12px; border: 1px solid #f1d69a; border-radius: 8px; background: var(--amber-soft); color: #8a5a08; font-size: 10px; line-height: 1.5; }
.health-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fact { padding: 11px; border: 1px solid #eceef4; border-radius: 8px; background: white; }
.fact span { display: block; color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.fact strong { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 10px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 14px; }
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: -2px -2px 14px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.profile-avatar { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 12px; background: linear-gradient(145deg, #7079e5, #545dce); color: white; font-size: 17px; font-weight: 800; }
.profile-head h2 { margin: 2px 0 0; font-size: 15px; }
.profile-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.account-details { margin-bottom: 16px; }
.account-help { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; padding: 10px; border-radius: 8px; background: var(--canvas); }
.account-help span { display: grid; place-items: center; flex: 0 0 17px; width: 17px; height: 17px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-size: 8px; font-weight: 800; }
.account-help p { margin: 1px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.security-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.password-panel .button-primary { width: max-content; }
.remembered-devices-panel { grid-column: 1 / -1; }
.remembered-devices-panel .panel-header { margin-bottom: 13px; }
.device-count { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; color: var(--primary-dark); background: var(--primary-soft); font-size: 14px; font-weight: 800; }
.success-mark { color: var(--green); background: var(--green-soft); }
.payment-list small { display: block; margin-top: 3px; color: var(--muted-light); font-size: 8px; }

/* Authentication */
.auth-body { background: var(--canvas); }
.auth-stage { display: grid; grid-template-columns: minmax(420px, .93fr) minmax(480px, 1.07fr); min-height: 100vh; }
.auth-visual { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 38px clamp(34px, 5vw, 78px); overflow: hidden; color: white; background: linear-gradient(145deg, #303a70 0%, #44509a 62%, #5a62c4 100%); }
.auth-visual::before { content: ""; position: absolute; width: 540px; height: 540px; left: -270px; bottom: -250px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.02); }
.auth-visual::after { content: ""; position: absolute; right: -120px; top: -150px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .035); }
.brand-light { position: relative; z-index: 1; }
.auth-visual-copy { position: relative; z-index: 1; margin-top: clamp(70px, 11vh, 125px); }
.auth-kicker { display: block; margin-bottom: 15px; color: #c6cbf4; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.auth-visual-copy h2 { margin: 0; max-width: 540px; font-size: clamp(34px, 4.25vw, 57px); font-weight: 690; line-height: 1.08; letter-spacing: -.055em; }
.auth-visual-copy p { max-width: 475px; margin: 20px 0 0; color: #cbd0ee; font-size: 13px; line-height: 1.7; }
.auth-preview { position: relative; z-index: 1; width: min(100%, 470px); margin: 46px auto 0; padding: 17px; border: 1px solid rgba(255, 255, 255, .19); border-radius: 14px 14px 0 0; background: rgba(255, 255, 255, .13); box-shadow: 0 25px 55px rgba(24, 29, 75, .2); backdrop-filter: blur(9px); }
.preview-top { display: flex; justify-content: space-between; margin-bottom: 15px; }
.preview-top span { display: block; width: 75px; height: 7px; border-radius: 5px; background: rgba(255,255,255,.3); }
.preview-top span:last-child { width: 42px; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preview-grid i { display: block; height: 54px; border-radius: 7px; background: rgba(255,255,255,.92); }
.preview-chart { display: flex; align-items: end; gap: 8px; height: 88px; margin-top: 8px; padding: 13px; border-radius: 7px; background: rgba(255,255,255,.92); }
.preview-chart b { flex: 1; height: 30%; border-radius: 3px 3px 0 0; background: #838bec; }
.preview-chart b:nth-child(2) { height: 58%; }.preview-chart b:nth-child(3) { height: 43%; }.preview-chart b:nth-child(4) { height: 76%; }.preview-chart b:nth-child(5) { height: 61%; }.preview-chart b:nth-child(6) { height: 90%; }.preview-chart b:nth-child(7) { height: 82%; }
.auth-trust { position: relative; z-index: 1; margin: auto 0 0; padding-top: 25px; color: #abb2db; font-size: 9px; }
.auth-pane { display: grid; place-items: center; padding: 34px; background: #f8f8fb; }
.auth-shell { width: min(100%, 420px); }
.auth-mobile-brand { display: none; margin-bottom: 25px; }
.auth-mobile-brand .brand-name { color: var(--ink); }
.auth-mobile-brand .brand-subtitle { color: var(--muted); }
.auth-card { padding: 32px 34px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-md); }
.auth-card h1 { margin: 7px 0 9px; color: var(--ink); font-size: clamp(27px, 4vw, 34px); font-weight: 720; line-height: 1.1; letter-spacing: -.045em; }
.eyebrow { color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.lead { margin: 0 0 25px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-link { display: block; margin-top: 18px; color: var(--primary); text-align: center; font-size: 11px; font-weight: 680; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-footnote { max-width: 350px; margin: 18px auto 0; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }

@media (max-width: 1220px) {
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-secondary-grid { grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr); }
  .dashboard-secondary-grid .payment-panel { grid-column: 1 / -1; }
  .filter-intro { display: none; }
  .filter-bar { grid-template-columns: minmax(185px, 1.2fr) minmax(125px, .7fr) repeat(2, minmax(130px, .7fr)) auto; }
  .invoice-filters { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .auth-stage { grid-template-columns: minmax(390px, .85fr) minmax(430px, 1.15fr); }
  .sales-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .dashboard-primary-grid, .content-grid, .account-grid { grid-template-columns: 1fr; }
  .dashboard-secondary-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-secondary-grid > :first-child { grid-column: 1 / -1; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters, .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-submit { width: max-content; }
  .health-facts { grid-template-columns: repeat(2, 1fr); }
  .auth-stage { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-mobile-brand { display: inline-flex; }
  .sales-primary-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-overview-grid, .sales-insight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(290px, 86vw); height: 100vh; padding: 20px 15px; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 18px 0 50px rgba(26, 30, 60, .23); }
  .app-shell.nav-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: block; }
  .nav-backdrop { position: fixed; z-index: 25; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(27, 31, 55, .46); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .app-shell.nav-open .nav-backdrop { display: block; opacity: 1; pointer-events: auto; }
  .main { padding: 0 15px 36px; }
  .topbar { min-height: 94px; margin: 0 -15px; padding: 15px; }
  .mobile-nav-toggle { display: grid; gap: 4px; flex: 0 0 36px; width: 36px; height: 36px; margin-right: 11px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
  .mobile-nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink-soft); }
  .breadcrumb, .page-heading p { display: none; }
  .page-heading h1 { font-size: 20px; }
  .account-copy, .account-chevron { display: none; }
  .account-chip { padding: 5px; }
  .freshness span:last-child { display: none; }
  .page-content { padding-top: 16px; }
  .filters, .filter-bar, .invoice-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .invoice-filters .filter-search { grid-column: 1 / -1; }
  .filter-advanced-toggle { display: inline-flex; width: 100%; }
  .invoice-filters .advanced-filter { display: none; }
  .invoice-filters.filters-expanded .advanced-filter { display: grid; }
  .field-source { grid-column: 1 / -1; }
  .dashboard-kpis, .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { min-height: 142px; padding: 14px; }
  .kpi-money { font-size: 19px; }
  .dashboard-secondary-grid { grid-template-columns: 1fr; }
  .dashboard-secondary-grid > :first-child, .dashboard-secondary-grid .payment-panel { grid-column: auto; }
  .chart-canvas { height: 235px; }
  .table-wrap table { min-width: 720px; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .sales-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
  .payment-analytics-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .payment-progress { grid-column: 2 / 4; }
}

@media (max-width: 480px) {
  .top-actions { gap: 8px; }
  .filters, .filter-bar, .invoice-filters { grid-template-columns: 1fr; }
  .field-source { grid-column: auto; }
  .filter-submit { width: 100%; }
  .dashboard-kpis, .kpi-grid { grid-template-columns: 1fr; }
  .kpi { min-height: 135px; }
  .kpi-value { font-size: 28px; }
  .kpi-money { font-size: 23px; }
  .panel { padding: 15px; }
  .panel-header { gap: 10px; }
  .panel-link { font-size: 9px; }
  .comparison-context { width: 100%; margin: 0 0 8px; }
  .list-header { align-items: flex-start; flex-direction: column; }
  .score-facts { grid-template-columns: 1fr 1fr 1fr; }
  .health-facts { grid-template-columns: 1fr; }
  .health-card { grid-template-columns: 1fr; }
  .health-card > .status { width: max-content; }
  .auth-pane { place-items: start center; min-height: 100vh; padding: 24px 14px; }
  .auth-card { padding: 26px 20px; }
  .detail-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sales-primary-kpis, .sales-stat-grid { grid-template-columns: 1fr; }
  .weekday-row { grid-template-columns: minmax(100px, 1fr) 115px; }
  .weekday-row progress { grid-column: 1 / -1; grid-row: 2; }
  .weekly-setting { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .settings-actions { align-items: stretch; flex-direction: column; }
  .settings-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================
   Vudux Portal — premium auth polish (2026-07)
   Sve izmene su CSS-only, na postojecim klasama.
   ============================================================ */

/* Leva vizuelna strana: dublja "aurora" pozadina + suptilna mreza */
.auth-visual {
  background-color: #262e5c;
  background-image:
    linear-gradient(160deg, rgba(38, 46, 92, 0.82) 0%, rgba(52, 62, 122, 0.55) 45%, rgba(70, 80, 160, 0.35) 100%),
    url('auth-bg.jpg');
  background-size: auto, cover;
  background-position: center, center;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8fd0ff, rgba(143, 208, 255, 0.2));
}

.auth-visual-copy h2 {
  background: linear-gradient(100deg, #ffffff 35%, #c7d3ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-visual-copy p { color: #d3d8f3; }

/* Mock-dashboard: jace staklo + lagano lebdenje + rast stubica */
.auth-preview {
  border-radius: 18px 18px 0 0;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 34px 70px rgba(18, 22, 60, 0.35);
  animation: vdxFloat 7s ease-in-out infinite;
}

@keyframes vdxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.preview-chart b {
  background: linear-gradient(180deg, #98a0f5 0%, #6a73e6 100%);
  transform-origin: bottom;
  animation: vdxBarGrow 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.preview-chart b:nth-child(2) { animation-delay: 0.08s; }
.preview-chart b:nth-child(3) { animation-delay: 0.16s; }
.preview-chart b:nth-child(4) { animation-delay: 0.24s; }
.preview-chart b:nth-child(5) { animation-delay: 0.32s; }
.preview-chart b:nth-child(6) { animation-delay: 0.40s; }
.preview-chart b:nth-child(7) { animation-delay: 0.48s; }

@keyframes vdxBarGrow {
  from { transform: scaleY(0.15); opacity: 0.35; }
  to { transform: scaleY(1); opacity: 1; }
}

.auth-trust { color: #bcc3ea; letter-spacing: 0.02em; }

.auth-visual .brand-mark,
.auth-mobile-brand .brand-mark {
  box-shadow: 0 10px 26px rgba(15, 19, 60, 0.45);
}

/* Desna strana: topliji ton + premium kartica */
.auth-pane {
  background-color: #f7f8fc;
  background-image:
    radial-gradient(720px 480px at 112% -8%, rgba(91, 100, 216, 0.10), transparent 60%),
    radial-gradient(620px 440px at -12% 112%, rgba(79, 145, 232, 0.08), transparent 55%);
}

.auth-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border-color: #e2e6f4;
  box-shadow: 0 28px 80px rgba(32, 36, 58, 0.13), 0 2px 8px rgba(32, 36, 58, 0.05);
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.65;
}

.auth-card input[type="email"],
.auth-card input[type="password"] {
  min-height: 46px;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 100, 216, 0.16);
}

.auth-card .password-toggle { top: 50%; transform: translateY(-50%); right: 8px; }

.auth-card .button-primary {
  min-height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b64d8 0%, #7868dd 55%, #4f91e8 135%);
  box-shadow: 0 12px 28px rgba(91, 100, 216, 0.32);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-card .button-primary:hover {
  background: linear-gradient(135deg, #5b64d8 0%, #7868dd 55%, #4f91e8 135%);
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 16px 36px rgba(91, 100, 216, 0.42);
}

.auth-link { transition: color 0.12s ease; }

@media (prefers-reduced-motion: reduce) {
  .auth-preview, .preview-chart b { animation: none; }
}

/* Pravi Vudux logo u auth zaglavlju */
.brand-logo-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
}
.brand-logo { display: block; filter: drop-shadow(0 4px 16px rgba(20, 25, 70, 0.35)); }
.brand-logo-lockup .brand-subtitle {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: #b9c2f0;
}
.auth-mobile-brand.brand-logo-lockup { align-items: center; }
.auth-mobile-brand.brand-logo-lockup .brand-subtitle { color: #7a81a5; }

.receipt-export-panel { padding: 20px; margin-bottom: 20px; }
[data-receipt-export] [hidden] { display: none !important; }
