/* =============================================================================
   ACCOUNTS — accounts.css
   Covers: Login, Register, Customer Dashboard, Admin Dashboard
   Loaded via <link> in index.html alongside styles.css

   ── COLOR PALETTE REFERENCE (change here to retheme) ──────────────────────
   Primary Blue   : #1a6fa3   ← Main brand blue
   Blue Light     : #2196c9   ← Hover / active states
   Blue Pale      : #eef5fc   ← Card backgrounds, input focus
   Accent Orange  : #f5a100   ← Buttons, highlights, Admin badge
   Accent Dark    : #d48f00   ← Button hover
   Accent Pale    : #fff8e6   ← Admin panel tint
   Success Green  : #2eaa6e   ← Upload success, confirmed state
   Danger Red     : #e53935   ← Errors, delete actions
   Auth BG Start  : #1a1a2e   ← Login/register hero gradient start
   Auth BG End    : #1a6fa3   ← Login/register hero gradient end
   ============================================================================= */

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes acc-fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes acc-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

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

/* =============================================================================
   AUTH PAGE WRAPPER  (login + register)
   ============================================================================= */

.acc-auth-wrap {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 56px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f2d4a 40%, #1a6fa3 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative background blobs */
.acc-auth-wrap::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(245,161,0,0.12) 0%, transparent 70%);
  top: -100px;
  right: -80px;
  pointer-events: none;
}

.acc-auth-wrap::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(33,150,201,0.15) 0%, transparent 70%);
  bottom: -60px;
  left: -60px;
  pointer-events: none;
}

.acc-auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  z-index: 1;
  animation: acc-fadeUp 0.4s ease both;
}

body.dark-mode .acc-auth-card {
  background: #161625;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
}

/* ── Auth header ─────────────────────────────────────────────────────────── */
.acc-auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  justify-content: center;
}

.acc-auth-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1a6fa3, #2196c9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.acc-auth-logo-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  color: #1a1a2e;
}

body.dark-mode .acc-auth-logo-text { color: #dde0f0; }

.acc-auth-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 4px;
  text-align: center;
}

body.dark-mode .acc-auth-title { color: #dde0f0; }

.acc-auth-sub {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}

body.dark-mode .acc-auth-sub { color: #8a8ea8; }

/* ── Auth tabs (Login / Register) ────────────────────────────────────────── */
.acc-tabs {
  display: flex;
  background: #f4f6fb;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 24px;
}

body.dark-mode .acc-tabs { background: #1e1e30; }

.acc-tab-btn {
  flex: 1;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #888;
  transition: background 0.18s ease, color 0.18s ease;
  letter-spacing: 0.02em;
}

body.dark-mode .acc-tab-btn { color: #5e6280; }

.acc-tab-btn.active {
  background: #fff;
  color: #1a6fa3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

body.dark-mode .acc-tab-btn.active {
  background: #252540;
  color: #5ba8d8;
}

/* ── Form fields ─────────────────────────────────────────────────────────── */
.acc-field {
  margin-bottom: 14px;
}

.acc-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  margin-bottom: 5px;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.03em;
}

body.dark-mode .acc-label { color: #9a9eb8; }

.acc-input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #dde0ea;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: #222;
  background: #fafbfd;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

.acc-input:focus {
  border-color: #1a6fa3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,111,163,0.10);
}

.acc-input.has-error {
  border-color: #e53935;
  background: #fff8f8;
}

body.dark-mode .acc-input {
  background: #1e1e30;
  border-color: #2a2a42;
  color: #dde0f0;
}

body.dark-mode .acc-input:focus {
  border-color: #5ba8d8;
  background: #222240;
  box-shadow: 0 0 0 3px rgba(91,168,216,0.12);
}

.acc-err-msg {
  font-size: 11px;
  color: #e53935;
  margin-top: 3px;
  display: block;
  font-family: 'Open Sans', sans-serif;
}

/* ── Password toggle wrapper ─────────────────────────────────────────────── */
.acc-pw-wrap {
  position: relative;
}

.acc-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #888;
  padding: 4px;
  line-height: 1;
}

body.dark-mode .acc-pw-toggle { color: #5e6280; }

/* ── Submit button ───────────────────────────────────────────────────────── */
.acc-submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #1a6fa3, #2196c9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  letter-spacing: 0.04em;
  margin-top: 6px;
  transition: opacity 0.18s ease, transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.acc-submit-btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,111,163,0.30);
}

.acc-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading spinner */
.acc-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: acc-spin 0.65s linear infinite;
  flex-shrink: 0;
}

/* ── Switch link ─────────────────────────────────────────────────────────── */
.acc-switch-row {
  text-align: center;
  margin-top: 18px;
  font-size: 12.5px;
  color: #888;
  font-family: 'Open Sans', sans-serif;
}

body.dark-mode .acc-switch-row { color: #5e6280; }

.acc-switch-row a,
.acc-switch-row button {
  color: #1a6fa3;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.acc-switch-row a:hover,
.acc-switch-row button:hover { color: #f5a100; }

/* ── Success / error banners ─────────────────────────────────────────────── */
.acc-banner {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  animation: acc-fadeUp 0.3s ease;
}

.acc-banner--success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
}

.acc-banner--error {
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  color: #c62828;
}

body.dark-mode .acc-banner--success { background: #0d2a10; border-color: #1a5c20; color: #6fcf79; }
body.dark-mode .acc-banner--error   { background: #2a0a0a; border-color: #6b1a1a; color: #f08080; }

/* =============================================================================
   DASHBOARD — SHARED SHELL
   ============================================================================= */

.acc-dash-wrap {
  min-height: calc(100vh - 160px);
  background: #f4f7fb;
  padding: 0 0 56px;
  animation: acc-fadeUp 0.35s ease;
}

body.dark-mode .acc-dash-wrap { background: #0f0f1a; }

/* ── Dashboard top bar ───────────────────────────────────────────────────── */
.acc-dash-topbar {
  background: linear-gradient(135deg, #1a1a2e 0%, #1a6fa3 100%);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  position: relative;
  overflow: hidden;
}

.acc-dash-topbar::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.acc-dash-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.acc-dash-greeting {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

.acc-dash-greeting span {
  color: #f5d07a;
}

/* ── Role badge ──────────────────────────────────────────────────────────── */
.acc-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: 'Open Sans', sans-serif;
}

.acc-role-badge--admin {
  background: rgba(245,161,0,0.22);
  border: 1px solid rgba(245,161,0,0.45);
  color: #f5d07a;
}

.acc-role-badge--customer {
  background: rgba(46,170,110,0.22);
  border: 1px solid rgba(46,170,110,0.45);
  color: #6fcf97;
}

/* ── Logout button in topbar ─────────────────────────────────────────────── */
.acc-logout-btn {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  padding: 7px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  letter-spacing: 0.02em;
}

.acc-logout-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}

/* ── Dashboard body ──────────────────────────────────────────────────────── */
.acc-dash-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

/* ── Stat cards row ──────────────────────────────────────────────────────── */
.acc-stat-row {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.acc-stat-card {
  flex: 1;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e4eaf4;
  border-radius: 14px;
  padding: 20px 20px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  animation: acc-fadeUp 0.4s ease both;
}

body.dark-mode .acc-stat-card {
  background: #161625;
  border-color: #2a2a42;
}

.acc-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
}

.acc-stat-card--blue::before  { background: #1a6fa3; }
.acc-stat-card--orange::before { background: #f5a100; }
.acc-stat-card--green::before  { background: #2eaa6e; }

.acc-stat-num {
  font-family: 'Open Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
  margin-bottom: 5px;
}

body.dark-mode .acc-stat-num { color: #dde0f0; }

.acc-stat-label {
  font-size: 11px;
  color: #888;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Open Sans', sans-serif;
}

body.dark-mode .acc-stat-label { color: #5e6280; }

/* =============================================================================
   ADMIN DASHBOARD — UPLOAD PANEL
   ============================================================================= */

.acc-panel {
  background: #fff;
  border: 1px solid #e4eaf4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 24px;
  animation: acc-fadeUp 0.42s ease both;
}

body.dark-mode .acc-panel {
  background: #161625;
  border-color: #2a2a42;
}

.acc-panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid #eef0f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, #f7f9fd, #fff);
}

body.dark-mode .acc-panel-header {
  border-bottom-color: #2a2a42;
  background: linear-gradient(90deg, #1a1a2e, #161625);
}

.acc-panel-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dark-mode .acc-panel-title { color: #dde0f0; }

.acc-panel-body {
  padding: 24px;
}

/* ── Upload dropzone ─────────────────────────────────────────────────────── */
.acc-dropzone {
  border: 2px dashed #c8d8ea;
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
  background: #f7fafd;
  position: relative;
}

.acc-dropzone:hover,
.acc-dropzone.dragover {
  border-color: #1a6fa3;
  background: #eef5fc;
}

body.dark-mode .acc-dropzone {
  border-color: #2a2a42;
  background: #1a1a2e;
}

body.dark-mode .acc-dropzone:hover,
body.dark-mode .acc-dropzone.dragover {
  border-color: #5ba8d8;
  background: #1a2a3a;
}

.acc-dropzone-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  display: block;
  line-height: 1;
}

.acc-dropzone-text {
  font-size: 14px;
  font-weight: 700;
  color: #1a6fa3;
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 4px;
}

body.dark-mode .acc-dropzone-text { color: #5ba8d8; }

.acc-dropzone-sub {
  font-size: 12px;
  color: #888;
  font-family: 'Open Sans', sans-serif;
}

body.dark-mode .acc-dropzone-sub { color: #5e6280; }

.acc-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ── Upload form row ─────────────────────────────────────────────────────── */
.acc-upload-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.acc-upload-row .acc-input {
  flex: 1;
  min-width: 180px;
}

.acc-upload-btn {
  padding: 11px 24px;
  background: linear-gradient(135deg, #f5a100, #d48f00);
  color: #1a1a2e;
  font-size: 13.5px;
  font-weight: 800;
  font-family: 'Open Sans', sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.15s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.acc-upload-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.acc-upload-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Selected file chip ──────────────────────────────────────────────────── */
.acc-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef5fc;
  border: 1px solid #c8dff2;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #1a6fa3;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  margin-top: 10px;
  max-width: 100%;
  overflow: hidden;
}

body.dark-mode .acc-file-chip {
  background: #1a2a3a;
  border-color: #2a3a4a;
  color: #5ba8d8;
}

.acc-file-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acc-file-chip-clear {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #888;
  padding: 0;
  line-height: 1;
}

/* =============================================================================
   DOCUMENTS TABLE
   ============================================================================= */

.acc-doc-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
}

.acc-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
}

.acc-doc-table th {
  text-align: left;
  padding: 11px 16px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
  border-bottom: 2px solid #eef0f8;
  background: #fafbfd;
  white-space: nowrap;
}

body.dark-mode .acc-doc-table th {
  color: #5e6280;
  border-bottom-color: #2a2a42;
  background: #1a1a2e;
}

.acc-doc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eef0f8;
  color: #444;
  vertical-align: middle;
}

body.dark-mode .acc-doc-table td {
  border-bottom-color: #222238;
  color: #b0b4c4;
}

.acc-doc-table tr:last-child td { border-bottom: none; }

.acc-doc-table tbody tr:hover td {
  background: #f7fafd;
}

body.dark-mode .acc-doc-table tbody tr:hover td {
  background: #1a1a2e;
}

/* ── File type icon chip ─────────────────────────────────────────────────── */
.acc-file-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.acc-file-type--pdf   { background: #fdecea; color: #c62828; }
.acc-file-type--doc,
.acc-file-type--docx  { background: #e3f2fd; color: #1565c0; }
.acc-file-type--xls,
.acc-file-type--xlsx  { background: #e8f5e9; color: #2e7d32; }
.acc-file-type--img   { background: #f3e5f5; color: #6a1b9a; }
.acc-file-type--other { background: #f5f5f5; color: #555; }

body.dark-mode .acc-file-type--pdf   { background: #2a0a08; color: #ef9a9a; }
body.dark-mode .acc-file-type--doc,
body.dark-mode .acc-file-type--docx  { background: #0d1f3a; color: #90caf9; }
body.dark-mode .acc-file-type--xls,
body.dark-mode .acc-file-type--xlsx  { background: #0a2010; color: #a5d6a7; }
body.dark-mode .acc-file-type--img   { background: #1a0d22; color: #ce93d8; }
body.dark-mode .acc-file-type--other { background: #1a1a2e; color: #8a8ea8; }

/* ── Download button ─────────────────────────────────────────────────────── */
.acc-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: #eef5fc;
  border: 1px solid #c8dff2;
  border-radius: 6px;
  color: #1a6fa3;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.acc-dl-btn:hover {
  background: #d4e9f7;
  border-color: #1a6fa3;
  color: #1a6fa3;
}

body.dark-mode .acc-dl-btn {
  background: #1a2a3a;
  border-color: #2a3a4a;
  color: #5ba8d8;
}

body.dark-mode .acc-dl-btn:hover {
  background: #1a3a52;
  border-color: #5ba8d8;
}

/* ── Delete button ───────────────────────────────────────────────────────── */
.acc-del-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  border-radius: 6px;
  color: #c62828;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s ease;
}

.acc-del-btn:hover { background: #fde8e8; border-color: #ef9a9a; }

body.dark-mode .acc-del-btn {
  background: #2a0a0a;
  border-color: #6b1a1a;
  color: #ef9a9a;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.acc-empty-state {
  text-align: center;
  padding: 44px 24px;
  color: #aaa;
  font-family: 'Open Sans', sans-serif;
}

body.dark-mode .acc-empty-state { color: #5e6280; }

.acc-empty-state-icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
  display: block;
  opacity: 0.6;
}

.acc-empty-state-text {
  font-size: 13.5px;
  font-weight: 700;
}

.acc-empty-state-sub {
  font-size: 12px;
  margin-top: 4px;
}

/* =============================================================================
   CUSTOMER DASHBOARD — WELCOME CARD
   ============================================================================= */

.acc-welcome-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #1a6fa3 100%);
  border-radius: 16px;
  padding: 32px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.acc-welcome-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245,161,0,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.acc-welcome-card-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
}

.acc-welcome-card-title span { color: #f5d07a; }

.acc-welcome-card-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  position: relative;
  max-width: 480px;
}

/* =============================================================================
   PROGRESS BAR (upload progress)
   ============================================================================= */

.acc-progress-wrap {
  margin-top: 12px;
}

.acc-progress-label {
  font-size: 12px;
  color: #888;
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.acc-progress-track {
  height: 6px;
  background: #e4eaf4;
  border-radius: 99px;
  overflow: hidden;
}

body.dark-mode .acc-progress-track { background: #2a2a42; }

.acc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a6fa3, #2196c9);
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* =============================================================================
   MODAL (confirm delete)
   ============================================================================= */

.acc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: acc-fadeUp 0.2s ease;
}

.acc-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

body.dark-mode .acc-modal { background: #161625; }

.acc-modal-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 8px;
}

body.dark-mode .acc-modal-title { color: #dde0f0; }

.acc-modal-text {
  font-size: 13.5px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 22px;
}

body.dark-mode .acc-modal-text { color: #8a8ea8; }

.acc-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.acc-modal-cancel {
  padding: 9px 20px;
  background: #f4f6fb;
  border: 1px solid #dde0ea;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  color: #555;
  transition: background 0.15s ease;
}

.acc-modal-cancel:hover { background: #eaecf4; }

body.dark-mode .acc-modal-cancel {
  background: #1e1e30;
  border-color: #2a2a42;
  color: #9a9eb8;
}

.acc-modal-confirm {
  padding: 9px 20px;
  background: #e53935;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.15s ease;
}

.acc-modal-confirm:hover { opacity: 0.88; }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
  .acc-dash-topbar  { padding: 0 16px; min-height: 52px; }
  .acc-dash-body    { padding: 20px 14px 0; }
  .acc-stat-row     { gap: 10px; }
  .acc-stat-card    { min-width: 130px; }
  .acc-panel-body   { padding: 16px; }
  .acc-panel-header { padding: 14px 16px; }
  .acc-auth-card    { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .acc-stat-row     { flex-wrap: wrap; }
  .acc-stat-card    { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .acc-upload-row   { flex-direction: column; }
  .acc-upload-btn   { width: 100%; justify-content: center; }
  .acc-dash-greeting { font-size: 12px; }
  .acc-modal        { padding: 20px; }
  .acc-doc-table th,
  .acc-doc-table td { padding: 10px 10px; }
}

/* =============================================================================
   OTP VERIFICATION UI
   ── Color tokens (change here to retheme) ──────────────────────────────────
   OTP Digit Border    : #d0dce8   ← unfocused digit box border
   OTP Digit Focus     : #1a6fa3   ← focused digit box border (Primary Blue)
   OTP Digit Error     : #e53935   ← Danger Red — bad code
   OTP Expire Text     : #f5a100   ← Accent Orange — expiry countdown
   OTP Expired Text    : #e53935   ← Danger Red — when code has expired
   OTP Resend Active   : #1a6fa3   ← Primary Blue — clickable resend
   OTP Resend Disabled : #aaa      ← greyed while countdown runs
   ============================================================================= */

.acc-otp-wrap {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  padding:        8px 0 4px;
  animation:      acc-fadeUp 0.35s ease both;
}

.acc-otp-icon { font-size: 44px; margin-bottom: 10px; }

.acc-otp-title {
  font-size: 1.25rem; font-weight: 700;
  color: #1a2840; margin-bottom: 6px; text-align: center;
}
.dark-mode .acc-otp-title { color: #e8f0fb; }

.acc-otp-sub {
  font-size: 0.9rem; color: #555; text-align: center;
  line-height: 1.5; margin-bottom: 22px; max-width: 320px;
}
.dark-mode .acc-otp-sub { color: #9db4cc; }

/* Six digit boxes */
.acc-otp-inputs { display: flex; gap: 10px; margin-bottom: 10px; }

.acc-otp-digit {
  width: 46px; height: 56px;
  border: 2px solid #d0dce8;  /* OTP Digit Border */
  border-radius: 10px;
  font-size: 1.5rem; font-weight: 700;
  text-align: center; color: #1a2840;
  background: #fff; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  caret-color: transparent;
}
.acc-otp-digit:focus {
  border-color: #1a6fa3;       /* OTP Digit Focus */
  box-shadow: 0 0 0 3px rgba(26,111,163,0.18);
}
.acc-otp-digit.has-error {
  border-color: #e53935;       /* OTP Digit Error */
  background: #fff5f5;
}
.dark-mode .acc-otp-digit {
  background: #1a2840; color: #e8f0fb; border-color: #2a4060;
}
.dark-mode .acc-otp-digit:focus {
  border-color: #2196c9;
  box-shadow: 0 0 0 3px rgba(33,150,201,0.22);
}

.acc-otp-error {
  color: #e53935;              /* Danger Red */
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 8px; text-align: center;
}

.acc-otp-ttl {
  font-size: 0.82rem; color: #888;
  margin-bottom: 16px; text-align: center;
}
.acc-otp-ttl strong { color: #f5a100; font-weight: 700; } /* OTP Expire Text */
.acc-otp-expired   { color: #e53935; font-weight: 600; }   /* OTP Expired Text */

.acc-otp-resend-row {
  font-size: 0.85rem; color: #666;
  margin-top: 14px; text-align: center;
}
.dark-mode .acc-otp-resend-row { color: #9db4cc; }

.acc-otp-resend-btn {
  background: none; border: none;
  color: #1a6fa3;              /* OTP Resend Active */
  font-weight: 700; cursor: pointer;
  padding: 0; font-size: 0.85rem; text-decoration: underline;
}
.acc-otp-resend-btn:hover { color: #2196c9; }

.acc-otp-resend-wait { color: #aaa; font-weight: 600; } /* OTP Resend Disabled */

@media (max-width: 480px) {
  .acc-otp-digit  { width: 38px; height: 48px; font-size: 1.25rem; }
  .acc-otp-inputs { gap: 6px; }
}
