.client-dashboard-page {
  --cd-ink: #0d1b2a;
  --cd-accent: #0f3554;
  --cd-accent-soft: #1b4965;
  --cd-highlight: #f2c14e;
  --cd-surface: #ffffff;
  --cd-surface-muted: #f7fafc;
  --cd-outline: rgba(13, 27, 42, 0.15);
  background-color: #f3f5f7;
  background-image: radial-gradient(circle at 15% 10%, rgba(15, 53, 84, 0.12), transparent 35%),
    radial-gradient(circle at 85% 0%, rgba(242, 193, 78, 0.2), transparent 40%),
    linear-gradient(180deg, #f9fbfd 0%, #eef2f6 100%);
  color: var(--cd-ink);
}

.client-dashboard-hero {
  border-radius: 18px;
  border: 1px solid var(--cd-outline);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 249, 0.9));
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.12);
  position: relative;
  overflow: hidden;
  animation: cd-rise 0.45s ease both;
}

.client-dashboard-hero .columns {
  flex-wrap: nowrap;
}

.client-dashboard-hero .column.is-2 {
  flex: 0 0 150px;
  max-width: 150px;
}

.client-dashboard-hero .column.is-two-thirds {
  flex: 1 1 auto;
  min-width: 0;
}

.client-dashboard-hero .column.is-one-quarter {
  flex: 0 0 220px;
  max-width: 220px;
}

.client-dashboard-hero-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.client-dashboard-sign-button {
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 0.95rem 2.4rem;
  font-size: 1.1rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--cd-highlight), #ffd166);
  color: #1b1b1b;
  box-shadow: 0 12px 24px rgba(242, 193, 78, 0.35);
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.client-dashboard-sign-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(242, 193, 78, 0.45);
}

.client-dashboard-hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 53, 84, 0.25), transparent 60%);
  pointer-events: none;
}

.client-dashboard-title {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  letter-spacing: 0.5px;
  color: var(--cd-accent);
}

.client-dashboard-message {
  background: rgba(242, 193, 78, 0.2);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  color: var(--cd-ink);
}

.client-dashboard-actions {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}

.client-dashboard-action {
  border-radius: 10px;
  border: 1px solid var(--cd-outline);
  background: var(--cd-surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: left;
}

.client-dashboard-hero .columns,
.client-dashboard-hero .column {
  min-width: 0;
}

.client-dashboard-action:hover {
  background: var(--cd-surface-muted);
  box-shadow: 0 8px 18px rgba(13, 27, 42, 0.12);
  transform: translateY(-1px);
}

.client-dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.client-dashboard-panel {
  border-radius: 16px;
  border: 1px solid var(--cd-outline);
  background: var(--cd-surface);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.08);
  animation: cd-fade 0.4s ease both;
}

.client-dashboard-panel + .client-dashboard-panel {
  animation-delay: 0.05s;
}

.client-dashboard-panel-heading {
  background: linear-gradient(120deg, var(--cd-accent), var(--cd-accent-soft));
  color: #ffffff !important;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  letter-spacing: 0.4px;
}

.client-dashboard-link {
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.client-dashboard-link:hover {
  background: rgba(15, 53, 84, 0.08);
  border-left-color: var(--cd-highlight);
  transform: translateX(2px);
}

.client-dashboard-main {
  border-radius: 18px;
  border: 1px solid var(--cd-outline);
  background: linear-gradient(135deg, #ffffff 0%, #f6f9fc 100%);
  box-shadow: 0 12px 30px rgba(13, 27, 42, 0.1);
  padding: 1rem;
  position: relative;
  overflow: hidden;
  animation: cd-fade 0.4s ease both;
}

.client-dashboard-main::before {
  content: "";
  position: absolute;
  inset: -120px auto auto -120px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 53, 84, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.client-dashboard-main > * {
  position: relative;
  z-index: 1;
}

.client-dashboard-main .box,
.client-dashboard-main .panel,
.client-dashboard-main .notification {
  border-radius: 14px;
  border: 1px solid rgba(13, 27, 42, 0.1);
  box-shadow: 0 10px 20px rgba(13, 27, 42, 0.08);
}

.client-dashboard-main .panel-heading {
  background: linear-gradient(120deg, #143a5a, #1e5274);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.client-dashboard-main .panel-heading::after {
  content: "";
  position: absolute;
  inset: auto -30% -18px -30%;
  height: 28px;
  background: linear-gradient(90deg, rgba(242, 193, 78, 0.35), rgba(242, 193, 78, 0));
  transform: rotate(-2deg);
  opacity: 0.8;
}

.client-dashboard-main .title,
.client-dashboard-main .subtitle {
  position: relative;
  z-index: 1;
}

.client-dashboard-main .title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 120px;
  height: 10px;
  background: linear-gradient(90deg, rgba(242, 193, 78, 0.4), rgba(242, 193, 78, 0));
  border-radius: 999px;
}

.client-dashboard-main .field {
  margin-bottom: 1rem;
}

.client-dashboard-logo {
  height: 3.5rem;
  width: auto;
  border-radius: 12px;
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.client-dashboard-logo--ws {
  height: 18.4rem;
}

.client-dashboard-logo--em {
  height: 16rem;
  margin-left: 2in;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.08) saturate(1.03);
}

.client-dashboard-hero-blank {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.client-dashboard-logo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.client-dashboard-logo-frame {
  width: 560px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.client-dashboard-main form,
.client-dashboard-main .box {
  animation: cd-rise 0.4s ease both;
}

.client-dashboard-main label,
.client-dashboard-main .label {
  color: var(--cd-ink);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.client-dashboard-main input,
.client-dashboard-main select,
.client-dashboard-main textarea {
  border-radius: 12px;
  border: 1px solid rgba(13, 27, 42, 0.2);
  background: #fbfcfe;
  box-shadow: inset 0 1px 2px rgba(13, 27, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.client-dashboard-main input:focus,
.client-dashboard-main select:focus,
.client-dashboard-main textarea:focus {
  border-color: rgba(15, 53, 84, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 53, 84, 0.12);
}

.client-dashboard-main .button,
.client-dashboard-main button {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.client-dashboard-main .button.is-primary,
.client-dashboard-main button.is-primary,
.client-dashboard-main .button.is-link,
.client-dashboard-main button.is-link {
  background: linear-gradient(120deg, var(--cd-accent), var(--cd-accent-soft));
  border: none;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(13, 27, 42, 0.2);
}

.client-dashboard-main .button:not(.is-danger):not(.is-warning):not(.is-light):not(.is-info):not(.is-success):not(.is-text) {
  background: linear-gradient(120deg, var(--cd-accent), var(--cd-accent-soft));
  border: none;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(13, 27, 42, 0.2);
}

.client-dashboard-main .button:hover,
.client-dashboard-main button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(13, 27, 42, 0.15);
}

.client-dashboard-main .help,
.client-dashboard-main .is-danger {
  font-weight: 600;
}

.client-dashboard-main table {
  border-radius: 12px;
  overflow: hidden;
}

.client-dashboard-main .notification {
  background: rgba(15, 53, 84, 0.08);
  color: var(--cd-ink);
}

@keyframes cd-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 768px) {
  .client-dashboard-hero {
    padding: 1rem;
  }

  .client-dashboard-main {
    padding: 0.75rem;
  }

  .client-dashboard-logo-frame {
    width: 320px;
    height: 300px;
  }

  .client-dashboard-logo--ws {
    height: 12rem;
  }

  .client-dashboard-logo--em {
    height: 11.2rem;
    margin-left: 2in;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.08) saturate(1.03);
  }
}

@media (max-width: 1024px) {
  .client-dashboard-hero .columns {
    flex-wrap: wrap;
  }

  .client-dashboard-hero .column.is-2,
  .client-dashboard-hero .column.is-two-thirds,
  .client-dashboard-hero .column.is-one-quarter {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .client-dashboard-actions {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .client-dashboard-hero-footer {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-dashboard-hero,
  .client-dashboard-panel,
  .client-dashboard-main {
    animation: none;
    transition: none;
  }
}
