:root {
  --bg-soft: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-card: #2c6dd4;
  --text: #f1f5f9;
  --muted: #3f444b;
  --primary: #667eea;
  --primary-600: #5a67d8;
  --primary-light: #316ecf;
  --secondary: #764ba2;
  --secondary-600: #6b46c1;
  --success: #10b981;
  --warning: #f59e0b;
  --border: #2c76df;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  --gradient-primary: linear-gradient(135deg, #3c57d1 0%, #6a33ff 100%);
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

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

  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes bounce {

  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    transform: translate3d(0, -8px, 0);
  }

  70% {
    transform: translate3d(0, -4px, 0);
  }

  90% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes progressFill {
  from {
    width: 0;
  }

  to {
    width: var(--target-width);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(135deg, #3c57d1 0%, #6a33ff 100%);
  min-height: 100vh;
}

/* Header Navigation */
.main-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.header-brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.nav-item {
  text-decoration: none;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-item:hover {
  color: #3c57d1;
  background: rgba(60, 87, 209, 0.08);
}

.client-login-btn {
  background: var(--primary);
  color: white !important;
  padding: 8px 20px;
  border-radius: 12px;
  font-weight: 600;
  margin-left: 8px;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.client-login-btn:hover {
  background: var(--primary-600);
  color: white !important;
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
  transform: translateY(-1px);
}

.login-btn {
  background: var(--primary);
  color: white !important;
}

.login-btn:hover {
  background: var(--primary-600);
  color: white !important;
}

.register-btn {
  border: 1px solid var(--primary);
  color: var(--primary) !important;
}

.register-btn:hover {
  background: var(--primary);
  color: white !important;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

/* Login */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--gradient-primary);
}

.login-content {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

/* Services Section */
.services-section {
  animation: fadeInLeft 0.6s ease-out;
}

.services-title {
  color: white;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  transition: all 0.3s ease;
  animation: fadeInUp 0.4s ease-out var(--service-delay, 0.2s) both;
}

.service-item:hover {
  transform: translateX(4px);
}

.service-bullet {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  width: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-item:hover .service-bullet {
  color: white;
  transform: scale(1.2);
}

.service-text {
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 28px;
  animation: scaleIn 0.4s ease-out 0.3s both;
  transition: all 0.3s ease;
}

.login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.login-logo {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.brand-image {
  display: block;
}

.login-logo-img {
  filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.login-logo svg {
  filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
  transition: transform 0.3s ease;
}

.login-logo:hover svg {
  transform: scale(1.1);
}

.login-title {
  margin: 4px 0 6px;
  font-size: 22px;
  color: #1f2937;
  animation: fadeInUp 0.4s ease-out 0.2s both;
}

.login-subtitle {
  margin: 0 0 10px;
  font-size: 13px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

label {
  display: block;
  font-size: 14px;
  color: #6b7280;
  margin: 12px 0 6px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out 0.8s both;
  background: white;
  color: #1f2937;
}

input:focus {
  border-color: #3c57d1;
  box-shadow: 0 0 0 3px rgba(60, 87, 209, .15);
  transform: translateY(-1px);
}

/* CAPTCHA Styles */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  animation: fadeInUp 0.8s ease-out 0.9s both;
}

.captcha-display {
  flex: 1;
  height: 45px;
  background: linear-gradient(135deg, #3c57d1 0%, #6a33ff 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: bold;
  color: white;
  letter-spacing: 3px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.captcha-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.1) 2px,
      rgba(255, 255, 255, 0.1) 4px);
  pointer-events: none;
}

.captcha-refresh {
  background: linear-gradient(135deg, #3c57d1 0%, #6a33ff 100%);
  border: none;
  border-radius: 12px;
  width: 45px;
  height: 45px;
  color: white;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(60, 87, 209, 0.3);
}

.captcha-refresh:hover {
  background: linear-gradient(135deg, #2d4bb5 0%, #5829e6 100%);
  transform: translateY(-1px) rotate(180deg);
  box-shadow: 0 4px 8px rgba(60, 87, 209, 0.4);
}

.captcha-refresh:active {
  transform: translateY(0) rotate(360deg);
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #000000;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn.primary {
  background: linear-gradient(135deg, #3c57d1 0%, #6a33ff 100%);
  border-color: #3c57d1;
  color: #fff;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #2d4bb5 0%, #5829e6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(60, 87, 209, 0.4);
}

.btn.primary:disabled {
  background: #9ca3af;
  border-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.ghost {
  background: #fff;
  border-color: var(--border);
}

.error-text {
  color: #b91c1c;
  min-height: 20px;
  font-size: 13px;
}

.demo-credentials {
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: #334155;
}

.demo-title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 13px;
}

.demo-row {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

/* App Layout */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  animation: fadeInUp 0.5s ease-out;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: linear-gradient(135deg, #3c57d1 0%, #6a33ff 100%);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  animation: fadeInLeft 0.4s ease-out;
}

.sidebar-header {
  padding: 6px 8px 14px;
  animation: slideInDown 0.5s ease-out 0.1s both;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.brand-logo {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

.brand-logo-img {
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.6));
}

.brand-container:hover .brand-logo {
  transform: scale(1.1);
}

.brand {
  font-weight: 700;
  color: white;
  letter-spacing: .4px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.brand:hover {
  transform: scale(1.05);
  text-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  animation: fadeInLeft 0.4s ease-out var(--nav-delay, 0.2s) both;
  color: rgba(255, 255, 255, 0.9);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
  color: white;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.icon {
  width: 18px;
  text-align: center;
  transition: transform 0.3s ease;
}

.nav-link:hover .icon {
  transform: scale(1.2);
}

.main {
  padding: 20px;
  animation: fadeInRight 0.5s ease-out 0.1s both;
  background: linear-gradient(135deg, #3c57d1 0%, #6a33ff 100%);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  animation: slideInDown 0.4s ease-out 0.2s both;
}

.sidebar-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sidebar-toggle:hover {
  transform: rotate(90deg);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.header-logo-img {
  filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.5));
}

.header-brand:hover .header-logo {
  transform: scale(1.1);
}

.app-title {
  margin: 0;
  font-size: 18px;
  animation: fadeInUp 0.4s ease-out 0.3s both;
  font-weight: 600;
  color: white;
}

.company-name {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  animation: fadeInUp 0.4s ease-out 0.4s both;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInRight 0.4s ease-out 0.5s both;
}

#logoutBtn {
  background: white;
  color: #3c57d1;
  border: 1px solid white;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#logoutBtn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.user-code {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.section-title {
  margin: 8px 0 14px;
  font-size: 18px;
  animation: fadeInUp 0.4s ease-out 0.1s both;
  color: white;
}

/* EXACT spacing from your images */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.summary-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: grid;
  gap: 8px;
  transition: all 0.3s ease;
  animation: scaleIn 0.4s ease-out var(--card-delay, 0.3s) both;
}

.summary-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  transform: translateY(-4px);
}

.kpi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kpi-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(60, 87, 209, 0.1);
  color: #3c57d1;
  transition: all 0.3s ease;
}

.summary-card:hover .kpi-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 12px rgba(60, 87, 209, 0.3);
}

.summary-title {
  font-size: 13px;
  color: #6b7280;
}

.summary-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .2px;
  transition: color 0.3s ease;
  color: #1f2937;
}

.summary-card:hover .summary-value {
  color: #3c57d1;
}

.summary-meta {
  font-size: 12px;
  color: #6b7280;
}

.link {
  font-size: 13px;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
  transform: translateX(2px);
  color: #374151;
}

/* EXACT two-column spacing from your images */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.4s ease-out var(--card-delay, 0.5s) both;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .1);
}

.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  animation: slideInDown 0.4s ease-out var(--header-delay, 0.6s) both;
}

.card-header h3 {
  margin: 0;
  font-size: 16px;
  transition: color 0.3s ease;
  color: #1f2937;
}

.card:hover .card-header h3 {
  color: #3c57d1;
}

.card-body {
  padding: 14px 16px;
  animation: fadeInUp 0.4s ease-out var(--body-delay, 0.7s) both;
}

/* Fix for View All links in payment cards */
.card-body .link {
  color: #1f2937 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  background: rgba(31, 41, 55, 0.05) !important;
  transition: all 0.3s ease !important;
}

.card-body .link:hover {
  color: #ffffff !important;
  background: #1f2937 !important;
  transform: translateY(-1px) !important;
}

/* ISIN Links Styling */
table a,
.table a {
  color: #2563eb !important;
  text-decoration: underline !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

table a:hover,
.table a:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

.item-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  animation: fadeInLeft 0.3s ease-out var(--row-delay, 0.8s) both;
}

.item-row:hover {
  background: rgba(60, 87, 209, 0.02);
  transform: translateX(4px);
}

.item-row:last-child {
  border-bottom: 0;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  transition: all 0.3s ease;
}

.status-badge:hover {
  transform: scale(1.05);
}

.paid {
  background: rgba(5, 150, 105, .12);
  color: var(--success);
}

.pending {
  background: rgba(217, 119, 6, .14);
  color: var(--warning);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Table styling */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table thead {
  background-color: #f5f5f5;
  border-bottom: 2px solid #ddd;
}

.table th {
  padding: 16px 24px;
  text-align: left;
  font-weight: 700;
  color: #1a1a1a;
  font-size: 15px;
  letter-spacing: 0.3px;
  background-color: #e8eef7;
  animation: slideInDown 0.3s ease-out var(--th-delay, 0.4s) both;
}

.table td {
  padding: 14px 24px;
  animation: fadeInLeft 0.3s ease-out var(--td-delay, 0.5s) both;
  color: #374151;
}

.table tr:hover td {
  background: rgba(60, 87, 209, 0.02);
  transform: translateX(2px);
}

.progress-bars {
  display: grid;
  gap: 16px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.progress-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  animation: fadeInLeft 0.4s ease-out var(--progress-delay, 0.3s) both;
}

.progress-label {
  color: #6b7280;
  font-size: 14px;
}

.progress {
  height: 14px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  position: relative;
}

.progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

.progress-fill {
  height: 100%;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite 0.5s;
}

.progress-fill.physical {
  background: linear-gradient(90deg, var(--primary), var(--primary-600));
}

.progress-fill.electronic {
  background: linear-gradient(90deg, var(--secondary), var(--secondary-600));
}

.progress-fill.demat-pending {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  animation: progressGrow 0.8s ease-out 0.4s forwards;
}

/* Animation Utility Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

.pulse-on-update {
  animation: pulse 0.6s ease-in-out;
}

.slide-in-notification {
  animation: slideInDown 0.5s ease-out;
}

.fade-transition {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Highlight target section when navigated from Issuer Records */
.highlight-section {
  outline: 2px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.15);
  border-radius: 12px;
  background: rgba(102, 126, 234, 0.06);
  transition: background 2.2s ease, box-shadow 2.2s ease, outline-color 2.2s ease;
}

.scale-on-hover {
  transition: transform 0.3s ease;
}

.scale-on-hover:hover {
  transform: scale(1.02);
}

/* Footer */
.main-footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 24px 0 16px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-content {
  display: block;
  margin-bottom: 30px;
}

.footer-logo-section {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
}

.footer-company-info h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.footer-company-info p {
  margin: 5px 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.footer-company-info a {
  color: #2563eb;
  text-decoration: underline;
}

.footer-company-info a:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.footer-link:hover {
  background: var(--primary-light);
  text-decoration: underline;
}

.footer-separator {
  color: var(--muted);
  font-size: 12px;
}

.foot.service-bullet {
  color: var(--primary);
  font-size: 12px;
  width: 16px;
  flex-shrink: 0;
  text-align: center;
}

.service-bullet-img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-container {
    padding: 10px 24px;
    gap: 20px;
  }

  .header-nav {
    gap: 6px;
  }

  .nav-item {
    font-size: 13px;
    padding: 6px 12px;
  }

  .client-login-btn {
    padding: 6px 16px;
  }

  .login-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .services-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .services-list {
    gap: 6px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-logo-section {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .nav-item {
    font-size: 12px;
    padding: 6px 8px;
  }

  .services-title {
    font-size: 24px;
  }

  .service-text {
    font-size: 14px;
  }

  .service-bullet {
    font-size: 10px;
    width: 14px;
  }

  .service-bullet-img {
    width: 14px;
    height: 14px;
  }

  .footer-links-row {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .footer-company-info p {
    font-size: 12px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-item {
    padding: 10px 14px;
    gap: 10px;
  }

  .login-container {
    padding: 16px;
  }

  .login-content {
    gap: 32px;
  }

  .services-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .services-list {
    gap: 4px;
  }

  .service-item {
    padding: 10px 14px;
    gap: 10px;
  }

  .service-text {
    font-size: 13px;
  }

  .login-card {
    padding: 24px;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 20;
    width: 260px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: inline-block;
  }

  .main {
    padding: 16px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .progress-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ISIN Sections Styling */
.isin-sections-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.isin-section {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
  animation-delay: var(--animation-delay, 0ms);
}

.isin-section .card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: visible !important;
  transition: all 0.3s ease;
  background: white;
}

.isin-section .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.isin-section .card-header {
  border-bottom: none;
  position: relative;
  overflow: visible !important;
}

.isin-section .card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.isin-section .card:hover .card-header::before {
  left: 100%;
}

.isin-section .table {
  border-collapse: separate;
  border-spacing: 0;
}

.isin-section .table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: white !important;
  border-top: none;
  color: #6b7280;
}

.isin-section .table tbody tr {
  transition: all 0.2s ease;
}

.isin-section .table tbody tr:hover {
  background-color: rgba(60, 87, 209, 0.05) !important;
  transform: scale(1.01);
}

.isin-section .table tbody tr:nth-child(even) {
  background-color: rgba(60, 87, 209, 0.02);
}

.isin-section .table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive design for ISIN sections */
@media (max-width: 768px) {
  .isin-section .card-header h3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .isin-section .card-header h3 span:last-child {
    font-size: 12px !important;
  }

  .isin-section .table {
    font-size: 12px;
  }

  .isin-section .table th,
  .isin-section .table td {
    padding: 8px !important;
  }
}

/* Loading animation for ISIN sections */
.isin-sections-container.loading {
  opacity: 0.7;
}

.isin-sections-container.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

/* Header Navigation Responsive Styles */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-logo {
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;
}

.nav-item {
  white-space: nowrap;
}

/* Download button styling */
#downloadCsvBtn,
.dropdown-toggle {
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#downloadCsvBtn:hover,
.dropdown-toggle:hover {
  background: #f8f9fa !important;
  color: #667eea !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#downloadCsvBtn:active,
.dropdown-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced dropdown positioning to extend beyond containers */
.dropdown-container {
  position: relative !important;
  display: inline-block !important;
  overflow: visible !important;
}

.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  background: white !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
  min-width: 220px !important;
  z-index: 999999 !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-10px) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: visible !important;
  max-height: none !important;
  white-space: nowrap !important;
}

.dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.dropdown-item {
  width: 100% !important;
  padding: 12px 16px !important;
  border: none !important;
  background: none !important;
  text-align: left !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  color: #333 !important;
  transition: all 0.2s ease !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
}

.dropdown-item:hover {
  background-color: #f8f9ff !important;
  color: #667eea !important;
  transform: translateX(4px) !important;
}

.dropdown-item:active {
  background-color: #e8ecff !important;
  transform: translateX(2px) !important;
}

.dropdown-item:not(:last-child) {
  border-bottom: 1px solid #f0f0f0 !important;
}

/* Ensure parent containers don't clip dropdowns */
.holder-data-container,
.section-header,
.card,
.card-header,
.card-body {
  overflow: visible !important;
}

/* Force all containers in the dropdown path to be visible */
#sharesView,
#downloadSectionTop {
  overflow: visible !important;
}

.footer-separator {
  color: var(--muted);
  font-size: 12px;
}

.foot.service-bullet {
  color: var(--primary);
  font-size: 12px;
  width: 16px;
  flex-shrink: 0;
  text-align: center;
}

.service-bullet-img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-container {
    padding: 10px 24px;
    gap: 20px;
  }

  .header-nav {
    gap: 6px;
  }

  .nav-item {
    font-size: 13px;
    padding: 6px 12px;
  }

  .client-login-btn {
    padding: 6px 16px;
  }

  .login-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .services-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .services-list {
    gap: 6px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-logo-section {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .nav-item {
    font-size: 12px;
    padding: 6px 8px;
  }

  .services-title {
    font-size: 24px;
  }

  .service-text {
    font-size: 14px;
  }

  .service-bullet {
    font-size: 10px;
    width: 14px;
  }

  .service-bullet-img {
    width: 14px;
    height: 14px;
  }

  .footer-links-row {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .footer-company-info p {
    font-size: 12px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-item {
    padding: 10px 14px;
    gap: 10px;
  }

  .login-container {
    padding: 16px;
  }

  .login-content {
    gap: 32px;
  }

  .services-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .services-list {
    gap: 4px;
  }

  .service-item {
    padding: 10px 14px;
    gap: 10px;
  }

  .service-text {
    font-size: 13px;
  }

  .login-card {
    padding: 24px;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 20;
    width: 260px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: inline-block;
  }

  .main {
    padding: 16px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .progress-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ISIN Sections Styling */
.isin-sections-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.isin-section {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
  animation-delay: var(--animation-delay, 0ms);
}

.isin-section .card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: visible !important;
  transition: all 0.3s ease;
  background: white;
}

.isin-section .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.isin-section .card-header {
  border-bottom: none;
  position: relative;
  overflow: visible !important;
}

.isin-section .card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.isin-section .card:hover .card-header::before {
  left: 100%;
}

.isin-section .table {
  border-collapse: separate;
  border-spacing: 0;
}

.isin-section .table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: white !important;
  border-top: none;
  color: #6b7280;
}

.isin-section .table tbody tr {
  transition: all 0.2s ease;
}

.isin-section .table tbody tr:hover {
  background-color: rgba(60, 87, 209, 0.05) !important;
  transform: scale(1.01);
}

.isin-section .table tbody tr:nth-child(even) {
  background-color: rgba(60, 87, 209, 0.02);
}

.isin-section .table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive design for ISIN sections */
@media (max-width: 768px) {
  .isin-section .card-header h3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .isin-section .card-header h3 span:last-child {
    font-size: 12px !important;
  }

  .isin-section .table {
    font-size: 12px;
  }

  .isin-section .table th,
  .isin-section .table td {
    padding: 8px !important;
  }
}

/* Loading animation for ISIN sections */
.isin-sections-container.loading {
  opacity: 0.7;
}

.isin-sections-container.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

/* Header Navigation Responsive Styles */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-logo {
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;
}

.nav-item {
  white-space: nowrap;
}

/* Download button styling */
#downloadCsvBtn,
.dropdown-toggle {
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#downloadCsvBtn:hover,
.dropdown-toggle:hover {
  background: #f8f9fa !important;
  color: #667eea !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#downloadCsvBtn:active,
.dropdown-toggle:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dropdown container and menu styling */
.dropdown-container {
  position: relative !important;
  display: inline-block !important;
  overflow: visible !important;
}

.dropdown-menu {
  animation: fadeIn 0.2s ease-in-out !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  z-index: 99999 !important;
  background: white !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  min-width: 220px !important;
  max-width: 300px !important;
  margin-top: 4px !important;
  padding: 4px 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.dropdown-menu[style*="display: none"] {
  display: none !important;
}

.dropdown-menu[style*="display: block"] {
  display: block !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  width: 100% !important;
  padding: 12px 16px !important;
  border: none !important;
  background: none !important;
  text-align: left !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  color: #333 !important;
  transition: all 0.2s ease !important;
  border-radius: 4px !important;
  margin: 2px 4px !important;
}

.dropdown-item:hover {
  background-color: #f8f9ff !important;
  color: #667eea !important;
  transform: translateX(2px) !important;
}

.dropdown-item:active {
  background-color: #e9ecef !important;
  transform: translateX(0) !important;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .header-nav {
    gap: 15px;
  }

  .nav-item {
    font-size: 14px;
  }

  #downloadCsvBtn {
    font-size: 14px;
    padding: 10px 16px;
    margin-top: 8px;
  }

  .header-logo img {
    width: 100px !important;
    height: 33px !important;
  }
}

@media (max-width: 600px) {
  .header-nav {
    gap: 10px;
  }

  .nav-item {
    font-size: 12px;
  }

  .header-logo img {
    width: 80px !important;
    height: 27px !important;
  }
}

/* Footer centering styles */
.main-footer {
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-company-info {
  text-align: center;
}

.footer-company-info p {
  text-align: center;
  margin: 3px 0;
  line-height: 1.4;
}

.footer-bottom {
  width: 100%;
  text-align: center;
}

/* Section header styling */
.section-header {
  position: relative;
  overflow: visible !important;
  background: linear-gradient(135deg, #3c57d1 0%, #6a33ff 100%) !important;
}

/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3c57d1 0%, #6a33ff 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.loading-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  border: 2px solid #667eea;
}

.loading-logo {
  margin-bottom: 24px;
}

.loading-logo-img {
  max-width: 200px;
  height: auto;
}

.loading-spinner {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 16px;
  color: #374151;
  margin-bottom: 20px;
  font-weight: 500;
}

.loading-progress {
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
}

/* Disclaimer Box Styling */
.disclaimer-content {
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

.disclaimer-title {
  font-weight: 600;
  font-size: 16px;
  color: #e65100;
  margin-bottom: 8px;
}

.disclaimer-text {
  color: #333333;
  font-size: 14px;
  line-height: 1.5;
}

.disclaimer-text a {
  color: #2563eb;
  text-decoration: underline;
}

.disclaimer-text a:hover {
  color: #1d4ed8;
}

/* Dropdown option styling for smaller font */
.invoice-dropdown option,
.ledger-dropdown option {
  font-size: 14px;
  padding: 8px;
}

/* Ensure consistent dropdown styling */
.invoice-dropdown,
.ledger-dropdown {
  font-size: 16px;
}

.invoice-dropdown option,
.ledger-dropdown option {
  font-size: 13px;
  line-height: 1.4;
}

/* Demat Pending Tooltip Styles */
.demat-pending-tooltip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted #667eea;
  display: inline-block;
}

.demat-pending-tooltip::after {
  content: attr(data-tooltip-text);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2d3748;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.demat-pending-tooltip::before {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2d3748;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
}

.demat-pending-tooltip:hover::after,
.demat-pending-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}