:root {
  --navy: #12141c;
  --navy-soft: #1c2030;
  --orange: #ff6a1a;
  --orange-deep: #e8380a;
  --orange-light: #fff1e8;
  --orange-glow: rgba(255, 106, 26, 0.35);
  --accent: #ff6a1a;
  --bg: #f6f5f4;
  --card: #ffffff;
  --border: #e9e7e4;
  --text: #1c1f26;
  --muted: #6b7280;
  --green: #1a9e5c;
  --red: #d64545;
}
* { box-sizing: border-box; }
a { text-decoration: none; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--navy);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(255,106,26,0.16) 0%, rgba(255,106,26,0) 45%),
    radial-gradient(circle at 95% 30%, rgba(255,106,26,0.10) 0%, rgba(255,106,26,0) 40%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 0 var(--orange), 0 8px 24px rgba(0,0,0,0.15);
}
.topbar a { color: #fff; text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: var(--orange); }
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; font-size: 15px; }
.topbar .brand img { display: block; }
.topbar .user-info { font-size: 13.5px; opacity: 0.85; }
.container {
  max-width: 1080px;
  margin: 36px auto;
  padding: 0 20px;
}
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 40px 20px;
  background: var(--navy);
}
.login-wrap::before {
  content: "";
  position: absolute;
  top: -220px; left: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,106,26,0.3) 0%, rgba(255,106,26,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.login-wrap::after {
  content: "";
  position: absolute;
  bottom: -240px; right: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,106,26,0.22) 0%, rgba(255,106,26,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.login-card {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  padding: 42px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}
.login-card .login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.login-card h1 {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--navy);
  text-align: center;
}
.login-card p.sub {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.card label, .login-card label { color: var(--navy); }
input[type=text], input[type=password], input[type=email], input[type=datetime-local], input[type=file], input[type=tel], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 16px;
  background: #fdfdfc;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-light);
  background: #fff;
}
/* Styled file upload tile - same pattern as the homepage Quick Send
   widget, so every "choose a file" moment on the site looks and feels
   the same rather than falling back to the plain native file picker. */
.qs-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.qs-add-tile {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--orange-glow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.qs-add-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 26px var(--orange-glow); }

button, .btn {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 18px var(--orange-glow);
  transition: transform 0.15s, box-shadow 0.15s;
}
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px var(--orange-glow); color: #fff; }
button:active, .btn:active { transform: translateY(0); }
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
  box-shadow: none;
}
.btn-secondary:hover { background: #faf9f8; border-color: var(--orange); color: var(--orange-deep); box-shadow: none; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(18,20,28,0.03);
}
.card h2 { margin-top: 0; font-size: 18px; color: var(--navy); }

/* Orange-glass highlight card - same recipe as the homepage's "Stay
   Compliant" and "New Customer Offer" boxes, reused here for the
   dashboard's credit balances and promotional banners. */
.orange-glass-card {
  background: linear-gradient(135deg, rgba(255,106,26,0.18), rgba(255,106,26,0.06));
  border: 1.5px solid rgba(255,106,26,0.45);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.orange-glass-card .stat-label { color: rgba(255,255,255,0.75); font-size: 13px; margin: 0 0 6px; }
.orange-glass-card .stat-number { color: #fff; font-size: 32px; font-weight: 800; margin: 0 0 8px; }
.orange-glass-card a.link { color: var(--orange); }

/* Clean My Data progress card - a richer status view than a plain bar:
   big bold percentage overlaid on the track, a current-stage label, and
   a row of stage indicators so the customer can see roughly where
   things stand, not just a number climbing. */
.clean-progress-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(18,20,28,0.03);
}
.clean-progress-filename {
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  margin: 0 0 16px;
  text-align: center;
  word-break: break-all;
}
.clean-progress-track {
  position: relative;
  background: #f0f0f0;
  border-radius: 999px;
  height: 34px;
  overflow: hidden;
}
.clean-progress-fill {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.clean-progress-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--navy);
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}
.clean-progress-status {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 22px;
}
.clean-progress-stages {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.clean-stage {
  flex: 1;
  text-align: center;
  position: relative;
}
.clean-stage:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 55%;
  width: 90%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.clean-stage.done:not(:last-child)::after { background: var(--orange); }
.clean-stage-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, background 0.2s;
}
.clean-stage.active .clean-stage-dot {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-light);
}
.clean-stage.done .clean-stage-dot {
  border-color: var(--orange);
  background: var(--orange);
}
.clean-stage-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}
.clean-stage.active .clean-stage-label,
.clean-stage.done .clean-stage-label { color: var(--navy); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
th { color: var(--muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: var(--orange-light); }
.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.badge-live { background: var(--orange-light); color: var(--orange-deep); }
.badge-pending { background: #fdf1e4; color: #b5711a; }
.error {
  background: #fdeaea;
  color: var(--red);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid #f6cccc;
}
.success {
  background: #e4f8ee;
  color: var(--green);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid #c9edd9;
}
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.muted { color: rgba(255,255,255,0.65); font-size: 13px; }
.card .muted, .login-card .muted { color: var(--muted); }
a.link { color: var(--orange-deep); font-weight: 600; }
a.link:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; }

h1 { color: #fff; letter-spacing: -0.3px; }

.customer-subnav {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.customer-subnav a {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.customer-subnav a:hover { color: var(--orange); }
.customer-subnav a.active { color: var(--orange); border-bottom-color: var(--orange); }

/* Subtitle paragraphs sitting directly under an <h1> (not nested inside
   a white .card) need lighter text than the standard .muted colour,
   which assumes a white background. Anything inside a .card keeps
   .muted's original colour, since white-on-white would be the actual
   problem there. */
.container > p.muted { color: rgba(255,255,255,0.65); }

