/* =========================================
   MISC Auth & Dashboard — Component Styles
   ========================================= */

/* ---- Auth Split Layout ---- */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
}

.auth-brand-panel {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.brand-logo .logo-box {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.brand-logo span { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }

.brand-headline {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.brand-sub {
  font-size: 15px;
  opacity: 0.82;
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.brand-apps-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 320px;
  position: relative;
  z-index: 1;
}

.brand-app-chip {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 10px 6px 8px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.brand-app-chip .chip-icon { font-size: 18px; display: block; margin-bottom: 4px; }
.brand-app-chip .chip-name { font-size: 9px; font-weight: 600; opacity: 0.9; }

/* ---- Auth Card Panel ---- */
.auth-card-panel {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}

.auth-card { width: 100%; max-width: 420px; }

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.auth-logo .logo-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.auth-logo span { font-size: 22px; font-weight: 700; color: var(--primary); }

.auth-heading {
  font-size: 27px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-subheading {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ---- Form Elements ---- */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: var(--font);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(113,75,103,0.1);
}

.form-input.error { border-color: #dc3545; }
.form-input.valid { border-color: var(--accent-green); }

.form-error {
  font-size: 12px;
  color: #dc3545;
  margin-top: 5px;
  display: none;
}

.form-error.visible { display: block; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-left: 44px; padding-right: 44px; }
.input-icon-wrap .form-input.no-right-icon { padding-right: 16px; }

.input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.toggle-password {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.toggle-password:hover { color: var(--primary); }

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px; height: 16px;
  flex-shrink: 0;
}

.forgot-link {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover { text-decoration: underline; }

.btn-block { width: 100%; justify-content: center; }

.auth-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ---- Step Indicator ---- */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}

.step-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-light);
  color: var(--text-muted);
  border: 2px solid var(--border);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-dot.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.step-dot.done   { background: var(--accent-green); color: #fff; border-color: var(--accent-green); }
.step-dot.done::after { content: '✓'; }

.step-line { width: 56px; height: 2px; background: var(--border); flex-shrink: 0; }
.step-line.done { background: var(--accent-green); }

.step-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: center;
  margin-top: 6px;
  color: var(--text-muted);
}

.step-group { display: flex; flex-direction: column; align-items: center; gap: 0; }

/* ---- OTP ---- */
.otp-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 28px 0 20px;
}

.otp-input {
  width: 54px; height: 62px;
  border: 2px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: var(--font);
}

.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(113,75,103,0.1); }
.otp-input.filled { border-color: var(--primary); background: rgba(113,75,103,0.05); }

.otp-timer {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.otp-timer .countdown { color: var(--primary); font-weight: 700; }

.resend-row { text-align: center; margin-bottom: 20px; font-size: 14px; color: var(--text-muted); }

.resend-btn {
  background: none; border: none;
  color: var(--primary); font-size: 14px;
  font-weight: 600; cursor: pointer;
  text-decoration: underline;
}

.resend-btn:disabled { color: var(--text-muted); text-decoration: none; cursor: default; }

/* ---- Password Strength ---- */
.password-strength { margin-top: 8px; }

.strength-bar {
  height: 4px; background: var(--border);
  border-radius: 2px; overflow: hidden; margin-bottom: 4px;
}

.strength-fill {
  height: 100%; border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}

.strength-text { font-size: 12px; font-weight: 600; }

/* ---- App Select Grid ---- */
.app-select-page {
  min-height: 100vh;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
}

.app-select-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.app-select-body {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
}

.app-select-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-select-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(113,75,103,0.1);
}

.app-select-search input {
  border: none; outline: none; flex: 1;
  font-size: 15px; background: transparent; font-family: var(--font);
}

.app-select-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.app-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.app-select-item {
  position: relative;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 18px 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}

.app-select-item:hover { border-color: rgba(113,75,103,0.4); box-shadow: 0 4px 12px rgba(0,0,0,0.07); }

.app-select-item.selected {
  border-color: var(--primary);
  background: rgba(113,75,103,0.05);
}

.app-select-item .check-mark {
  position: absolute;
  top: 8px; right: 8px;
  width: 18px; height: 18px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-select-item.selected .check-mark { opacity: 1; transform: scale(1); }

.app-select-item .app-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.app-select-item .app-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.app-select-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.selected-count-text {
  font-size: 14px;
  color: var(--text-muted);
}

.selected-count-text strong { color: var(--primary); }

/* ---- Success Page ---- */
.success-page {
  min-height: 100vh;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.success-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 52px 48px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.success-icon {
  width: 84px; height: 84px;
  background: rgba(40,167,69,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 28px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-card h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; color: var(--text-dark); }
.success-card p  { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }

/* ---- Welcome Page ---- */
.welcome-page {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--primary) 0%, #3d1e35 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: #fff;
}

.welcome-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
}

.welcome-logo .logo-box {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.3);
}

.welcome-logo span { font-size: 24px; font-weight: 800; }

.welcome-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 3px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  margin: 0 auto 22px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.welcome-title {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.welcome-subtitle {
  font-size: 16px;
  opacity: 0.82;
  margin-bottom: 44px;
  max-width: 420px;
  line-height: 1.7;
}

.welcome-apps-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.65;
  margin-bottom: 16px;
}

.welcome-apps-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.app-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 30px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: background 0.15s;
}

.app-pill:hover { background: rgba(255,255,255,0.22); }
.app-pill .pill-icon { font-size: 15px; }

/* ---- Dashboard ---- */
.dash-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 16px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-light);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.15s;
  position: relative;
}

.topbar-icon-btn:hover { background: var(--border); }

.notif-badge {
  position: absolute;
  top: 5px; right: 5px;
  width: 8px; height: 8px;
  background: #dc3545;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* User Avatar Button (Google-style) */
.user-avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.user-avatar-btn:hover {
  border-color: rgba(113,75,103,0.3);
  box-shadow: 0 0 0 3px rgba(113,75,103,0.12);
}

.app-switcher-wrapper { position: relative; }

/* App Switcher Panel (Google-style dropdown) */
.app-switcher-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 348px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.16), 0 4px 16px rgba(0,0,0,0.08);
  z-index: 200;
  overflow: hidden;
  transform-origin: top right;
  transform: scale(0.88) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.18s;
}

.app-switcher-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.switcher-user-section {
  padding: 20px 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(145deg, rgba(113,75,103,0.05), #fff);
  border-bottom: 1px solid var(--border);
}

.switcher-avatar-lg {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(113,75,103,0.2);
}

.switcher-user-name { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.switcher-user-email { font-size: 13px; color: var(--text-muted); }
.switcher-user-company { font-size: 11px; color: var(--primary); font-weight: 600; margin-top: 2px; }

.switcher-apps-section { padding: 16px 20px; border-bottom: 1px solid var(--border); }

.switcher-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.switcher-section-title a {
  font-size: 11px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.switcher-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-height: 230px;
  overflow-y: auto;
}

.switcher-apps-grid::-webkit-scrollbar { width: 4px; }
.switcher-apps-grid::-webkit-scrollbar-track { background: transparent; }
.switcher-apps-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.switcher-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.switcher-app-item:hover  { background: var(--bg-light); }
.switcher-app-item.active { background: rgba(113,75,103,0.12); outline: 2px solid rgba(113,75,103,0.3); }

.switcher-app-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.switcher-app-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.2;
}

.no-apps-msg {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 4px;
  grid-column: 1/-1;
  text-align: center;
}

.switcher-footer {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.switcher-footer a {
  flex: 1;
  text-align: center;
  padding: 9px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.switcher-footer .btn-settings { background: var(--bg-light); color: var(--text-dark); }
.switcher-footer .btn-settings:hover { background: var(--border); }
.switcher-footer .btn-logout { background: rgba(220,53,69,0.1); color: #dc3545; }
.switcher-footer .btn-logout:hover { background: rgba(220,53,69,0.18); }

/* ---- Dashboard Layout ---- */
.dash-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-light);
  padding-top: 60px;
}

.dash-sidebar {
  width: 228px;
  background: #fff;
  border-right: 1px solid var(--border);
  position: fixed;
  left: 0; top: 60px; bottom: 0;
  overflow-y: auto;
  padding: 16px 0;
  z-index: 50;
  transition: transform 0.3s;
}

.sidebar-group-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  padding: 14px 20px 6px;
}

.sidebar-nav { list-style: none; padding: 0 10px; }
.sidebar-nav li { margin-bottom: 2px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}

.sidebar-nav a:hover { background: var(--bg-light); color: var(--text-dark); }
.sidebar-nav a.active { background: rgba(113,75,103,0.1); color: var(--primary); font-weight: 600; }
.sidebar-nav a .nav-icon { font-size: 15px; flex-shrink: 0; }

.dash-main {
  flex: 1;
  margin-left: 228px;
  padding: 28px 28px 40px;
  min-width: 0;
}

/* Stat Cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: all 0.2s;
}

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

.stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--text-dark); line-height: 1; margin-bottom: 8px; }
.stat-change { font-size: 12px; font-weight: 600; }
.stat-change.up   { color: var(--accent-green); }
.stat-change.down { color: #dc3545; }

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

/* Dashboard Card */
.dash-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.dash-card-header h3 { font-size: 15px; font-weight: 700; }
.dash-card-header a { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 600; }
.dash-card-header a:hover { text-decoration: underline; }

/* My Apps grid on dashboard */
.my-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}

.my-app-tile {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 14px 8px 10px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid transparent;
  transition: all 0.18s;
}

.my-app-tile:hover {
  background: #fff;
  border-color: rgba(113,75,103,0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.my-app-tile .tile-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.my-app-tile .tile-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

/* Activity Feed */
.activity-feed { display: flex; flex-direction: column; }

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-light);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.activity-text { font-size: 14px; color: var(--text-dark); margin-bottom: 2px; line-height: 1.5; }
.activity-time { font-size: 12px; color: var(--text-muted); }

/* Greeting Banner */
.greeting-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 24px 28px;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.greeting-banner h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.greeting-banner p  { font-size: 14px; opacity: 0.82; }

.greeting-banner .btn-white {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s;
  flex-shrink: 0;
}

.greeting-banner .btn-white:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.18); }

/* Grid layout for two-col */
.dash-grid-2 {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
}

/* Responsive */
@media (max-width: 900px) {
  .dash-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .auth-split { grid-template-columns: 1fr; min-height: 100vh; }
  .auth-brand-panel { display: none; }
  .auth-card-panel { padding: 32px 24px; }
  .dash-sidebar { transform: translateX(-100%); }
  .dash-main { margin-left: 0; padding: 20px 16px; }
  .app-switcher-panel { width: 300px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .otp-input { width: 44px; height: 54px; font-size: 22px; }
  .otp-grid { gap: 7px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .app-switcher-panel { width: calc(100vw - 32px); right: -10px; }
}
