/* ============================================================
   IWC Portal — Main Stylesheet
   Navy #0a1f33 | Gold #D4AF37 | Mobile-first
   ============================================================ */

/* ── Base Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  background: var(--iwc-bg);
  color: #1a2940;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--iwc-navy) 0%, #112a47 60%, #1a3d5e 100%);
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(212,175,55,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(212,175,55,.08) 0%, transparent 50%);
  pointer-events: none;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.auth-card-header {
  background: var(--iwc-navy);
  padding: 32px 36px 28px;
  text-align: center;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 4px;
}

.auth-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--iwc-gold);
  letter-spacing: .5px;
}

.auth-logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.auth-card-body {
  padding: 32px 36px 36px;
}

.auth-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--iwc-navy);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--iwc-muted);
  margin-bottom: 24px;
}

/* ── Form Controls ───────────────────────────────────────── */
.form-label {
  font-weight: 500;
  font-size: 13px;
  color: #344563;
  margin-bottom: 6px;
}

.form-control, .form-select {
  border: 1.5px solid var(--iwc-border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1a2940;
  background: #fafbfc;
  transition: var(--transition);
  width: 100%;
}

.form-control:focus, .form-select:focus {
  border-color: var(--iwc-gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
  background: #fff;
  outline: none;
}

.form-control.is-invalid { border-color: var(--iwc-danger); }
.form-control.is-valid   { border-color: var(--iwc-success); }

.input-group-text {
  border: 1.5px solid var(--iwc-border);
  background: #f0f3f7;
  color: #6c757d;
  border-radius: 10px;
}

.input-group .form-control:not(:last-child) { border-radius: 10px 0 0 10px; }
.input-group .form-control:not(:first-child) { border-radius: 0 10px 10px 0; }
.input-group .input-group-text:first-child   { border-radius: 10px 0 0 10px; }
.input-group .input-group-text:last-child    { border-radius: 0 10px 10px 0; }

.password-toggle {
  cursor: pointer;
  background: #f0f3f7;
  border-left: none !important;
  user-select: none;
  border: 1.5px solid var(--iwc-border);
  padding: 0 14px;
  display: flex;
  align-items: center;
}

.password-toggle:hover { background: #e4e9f0; color: var(--iwc-navy); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  font-family: inherit;
  font-weight: 500;
  border-radius: 10px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary {
  background: var(--iwc-navy);
  border: 2px solid var(--iwc-navy);
  color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
  background: #0d2847;
  border-color: #0d2847;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10,31,51,.3);
}

.btn-gold {
  background: var(--iwc-gold);
  border: 2px solid var(--iwc-gold);
  color: var(--iwc-navy);
  font-weight: 600;
}

.btn-gold:hover {
  background: var(--iwc-gold-light);
  border-color: var(--iwc-gold-light);
  color: var(--iwc-navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,175,55,.4);
}

.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--iwc-navy);
  color: var(--iwc-navy);
}

.btn-outline-primary:hover {
  background: var(--iwc-navy);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.85);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 15px; }

.btn:disabled, .btn.loading {
  opacity: .7;
  pointer-events: none;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: none;
}

.btn.loading .btn-spinner { display: block; }
.btn.loading .btn-text    { display: none; }

/* ── Alerts / Toasts ─────────────────────────────────────── */
.alert {
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-danger  { background: #fef2f2; color: #991b1b; }
.alert-success { background: #f0fdf4; color: #14532d; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-info    { background: #eff6ff; color: #1e3a8a; }

.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-msg {
  pointer-events: all;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 14px 18px 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  animation: slideInRight .3s ease;
  border-left: 4px solid var(--iwc-gold);
}

.toast-msg.toast-success { border-color: var(--iwc-success); }
.toast-msg.toast-error   { border-color: var(--iwc-danger); }
.toast-msg.toast-warning { border-color: var(--iwc-warn); }

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-success .toast-icon { color: var(--iwc-success); }
.toast-error .toast-icon   { color: var(--iwc-danger); }
.toast-warning .toast-icon { color: var(--iwc-warn); }
.toast-info .toast-icon    { color: #3b82f6; }

.toast-text { flex: 1; font-size: 13.5px; font-weight: 500; color: #1a2940; }
.toast-close { background: none; border: none; color: #aaa; cursor: pointer; padding: 2px; border-radius: 6px; }
.toast-close:hover { color: #666; background: #f3f4f6; }

.toast-msg.removing { animation: slideOutRight .25s ease forwards; }

/* ── Portal Layout ───────────────────────────────────────── */
.portal-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.portal-sidebar {
  width: var(--sidebar-w);
  background: var(--iwc-navy);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 200;
  transition: transform .3s ease;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.portal-sidebar::-webkit-scrollbar { width: 4px; }
.portal-sidebar::-webkit-scrollbar-track { background: transparent; }
.portal-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sidebar-brand-icon {
  width: 40px;
  height: 40px;
  background: var(--iwc-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--iwc-navy);
  flex-shrink: 0;
}

.sidebar-brand-text { line-height: 1.2; }
.sidebar-brand-name { font-size: 14px; font-weight: 700; color: #fff; }
.sidebar-brand-sub  { font-size: 10px; color: rgba(255,255,255,.45); letter-spacing: .5px; }

.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--iwc-gold), #b8962e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--iwc-navy);
  flex-shrink: 0;
}

.sidebar-user-name  { font-size: 13px; font-weight: 600; color: #fff; }
.sidebar-user-badge { font-size: 10px; color: var(--iwc-gold); font-weight: 500; margin-top: 1px; }

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 20px 6px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
}

.sidebar-nav .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.sidebar-nav .nav-link.active {
  color: var(--iwc-gold);
  background: rgba(212,175,55,.1);
  font-weight: 600;
}

.sidebar-nav .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--iwc-gold);
  border-radius: 0 3px 3px 0;
}

.nav-link-icon {
  width: 20px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-link-badge {
  margin-left: auto;
  background: var(--iwc-gold);
  color: var(--iwc-navy);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.nav-link-badge.badge-red {
  background: var(--iwc-danger);
  color: #fff;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
  backdrop-filter: blur(2px);
}

/* Topbar */
.portal-topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--iwc-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
  box-shadow: 0 1px 8px rgba(10,31,51,.06);
}

.topbar-toggle {
  background: none;
  border: none;
  padding: 8px;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  display: none;
  font-size: 18px;
}

.topbar-toggle:hover { background: #f3f4f6; color: var(--iwc-navy); }

.topbar-breadcrumb {
  flex: 1;
}

.topbar-breadcrumb h1 {
  font-size: 17px;
  font-weight: 600;
  color: var(--iwc-navy);
  margin: 0;
}

.topbar-breadcrumb .breadcrumb {
  margin: 0;
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: #f3f4f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.topbar-icon-btn:hover { background: #e5e7eb; color: var(--iwc-navy); }

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--iwc-danger);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Main Content */
.portal-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-content {
  flex: 1;
  padding: 28px 28px 40px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--iwc-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  background: #fff;
  border-bottom: 1px solid var(--iwc-border);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-header h5, .card-header h6 {
  margin: 0;
  font-weight: 600;
  color: var(--iwc-navy);
  font-size: 15px;
}

.card-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.card-body { padding: 22px; }

/* ── Status Timeline ─────────────────────────────────────── */
.status-timeline {
  position: relative;
  padding: 4px 0;
}

.status-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--iwc-border);
}

.timeline-step {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  position: relative;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  z-index: 1;
  border: 3px solid var(--iwc-border);
  background: #fff;
  transition: var(--transition);
}

.timeline-step.done .timeline-dot {
  background: var(--iwc-success);
  border-color: var(--iwc-success);
  color: #fff;
}

.timeline-step.current .timeline-dot {
  background: var(--iwc-gold);
  border-color: var(--iwc-gold);
  color: var(--iwc-navy);
  box-shadow: 0 0 0 4px rgba(212,175,55,.2);
}

.timeline-step.pending .timeline-dot {
  background: #f3f4f6;
  color: #bbb;
}

.timeline-info { padding-top: 8px; }
.timeline-title { font-size: 13.5px; font-weight: 600; color: var(--iwc-navy); }
.timeline-desc  { font-size: 12px; color: var(--iwc-muted); margin-top: 2px; }
.timeline-date  { font-size: 11px; color: #aaa; }

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card {
  background: #fff;
  border: 1px solid var(--iwc-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-icon.navy  { background: rgba(10,31,51,.08);  color: var(--iwc-navy); }
.stat-icon.gold  { background: rgba(212,175,55,.12); color: #a07c1a; }
.stat-icon.green { background: rgba(26,159,90,.1);   color: var(--iwc-success); }
.stat-icon.red   { background: rgba(220,53,69,.1);   color: var(--iwc-danger); }

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--iwc-navy);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--iwc-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* ── Document Upload Grid ────────────────────────────────── */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.doc-card {
  border: 1.5px dashed var(--iwc-border);
  border-radius: var(--radius);
  padding: 20px 18px;
  background: #fafbfc;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.doc-card:hover {
  border-color: var(--iwc-gold);
  background: rgba(212,175,55,.04);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.doc-card.uploaded {
  border-style: solid;
  border-color: var(--iwc-success);
  background: #f0fdf4;
  cursor: default;
}

.doc-card.uploaded:hover { transform: none; }

.doc-card.rejected {
  border-style: solid;
  border-color: var(--iwc-danger);
  background: #fef2f2;
}

.doc-card.pending-review {
  border-style: solid;
  border-color: var(--iwc-warn);
  background: #fffbeb;
}

.doc-card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.doc-card.uploaded .doc-card-icon { color: var(--iwc-success); }
.doc-card.rejected  .doc-card-icon { color: var(--iwc-danger); }
.doc-card.pending-review .doc-card-icon { color: var(--iwc-warn); }
.doc-card:not(.uploaded):not(.rejected):not(.pending-review) .doc-card-icon { color: #bcc4ce; }

.doc-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--iwc-navy);
  margin-bottom: 4px;
}

.doc-card-hint {
  font-size: 11.5px;
  color: var(--iwc-muted);
  line-height: 1.4;
}

.doc-card-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 10px;
}

.doc-card-status.status-uploaded { background: #dcfce7; color: #166534; }
.doc-card-status.status-rejected { background: #fee2e2; color: #991b1b; }
.doc-card-status.status-pending  { background: #fef3c7; color: #92400e; }
.doc-card-status.status-required { background: #f3f4f6; color: #6b7280; }

.doc-card-required-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  color: var(--iwc-danger);
  background: #fee2e2;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.doc-card-optional-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 7px;
  border-radius: 20px;
}

.doc-rejection-reason {
  font-size: 11.5px;
  color: var(--iwc-danger);
  background: rgba(220,53,69,.08);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 8px;
  line-height: 1.4;
}

/* ── Messages ────────────────────────────────────────────── */
.message-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0;
}

.message-item {
  display: flex;
  gap: 12px;
  max-width: 82%;
}

.message-item.mine {
  margin-left: auto;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.msg-avatar.iwc  { background: var(--iwc-navy); color: var(--iwc-gold); }
.msg-avatar.mine { background: var(--iwc-gold); color: var(--iwc-navy); }

.msg-bubble {
  background: #f3f4f6;
  border-radius: 4px 16px 16px 16px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #1a2940;
}

.message-item.mine .msg-bubble {
  background: var(--iwc-navy);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
}

.msg-meta { font-size: 11px; color: #aaa; margin-top: 4px; }
.message-item.mine .msg-meta { text-align: right; }

.message-compose {
  border-top: 1px solid var(--iwc-border);
  padding-top: 16px;
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.message-compose textarea {
  flex: 1;
  resize: none;
  min-height: 80px;
}

/* ── Progress Bar ────────────────────────────────────────── */
.progress {
  height: 8px;
  border-radius: 20px;
  background: #e9ecef;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--iwc-navy), var(--iwc-gold));
  border-radius: 20px;
  transition: width .6s ease;
}

.progress-label {
  font-size: 12px;
  color: var(--iwc-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

/* ── Badges / Chips ──────────────────────────────────────── */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .2px;
}

.badge-status.pending    { background: #fef3c7; color: #92400e; }
.badge-status.reviewing  { background: #dbeafe; color: #1e40af; }
.badge-status.approved   { background: #dcfce7; color: #166534; }
.badge-status.rejected   { background: #fee2e2; color: #991b1b; }
.badge-status.placed     { background: #f0fdf4; color: #14532d; border: 1.5px solid #bbf7d0; }
.badge-status.payment    { background: #fdf2f8; color: #9d174d; }

/* ── Modals ──────────────────────────────────────────────── */
.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,.2);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--iwc-border);
  padding: 20px 24px;
  background: var(--iwc-navy);
  color: #fff;
}

.modal-header .modal-title { font-weight: 600; font-size: 16px; }
.modal-header .btn-close { filter: invert(1); opacity: .7; }
.modal-header .btn-close:hover { opacity: 1; }

.modal-body    { padding: 24px; }
.modal-footer  { border-top: 1px solid var(--iwc-border); padding: 16px 24px; background: #f8f9fa; }

/* ── Dropzone ────────────────────────────────────────────── */
.dropzone-area {
  border: 2px dashed var(--iwc-gold) !important;
  border-radius: 14px !important;
  background: rgba(212,175,55,.04) !important;
  min-height: 160px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.dropzone-area:hover, .dropzone-area.dz-drag-hover {
  background: rgba(212,175,55,.08) !important;
  border-color: var(--iwc-gold-light) !important;
}

.dropzone-area .dz-message {
  text-align: center;
  padding: 24px;
}

.dropzone-icon {
  font-size: 36px;
  color: var(--iwc-gold);
  margin-bottom: 10px;
}

.dropzone-text { font-size: 14px; font-weight: 600; color: var(--iwc-navy); }
.dropzone-hint { font-size: 12px; color: var(--iwc-muted); margin-top: 4px; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

.fade-in  { animation: fadeIn .4s ease; }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }

@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}

/* ── Welcome Tour ────────────────────────────────────────── */
.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .3s ease;
  backdrop-filter: blur(4px);
}

.tour-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  animation: fadeIn .4s ease;
}

.tour-step-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 24px;
}

.tour-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--iwc-border);
  transition: var(--transition);
}

.tour-dot.active {
  background: var(--iwc-gold);
  width: 24px;
  border-radius: 4px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 992px) {
  .portal-sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
  }

  .portal-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.2);
  }

  .sidebar-overlay.active { display: block; }

  .topbar-toggle { display: flex; }

  .portal-main { margin-left: 0; }

  .portal-content { padding: 20px 16px 32px; }

  .doc-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

  .auth-card-body { padding: 24px 24px 28px; }
  .auth-card-header { padding: 24px 24px 20px; }
}

@media (max-width: 576px) {
  .portal-content { padding: 16px 12px 28px; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px; }
  .stat-icon { width: 44px; height: 44px; font-size: 18px; }
  .stat-value { font-size: 22px; }
  .message-item { max-width: 90%; }
}
