.eoffice-hero {
  position: relative;
  overflow: hidden;
  text-align: left;
  background: linear-gradient(135deg, #321044 0%, #4c1768 54%, #6d2789 100%);
}

.eoffice-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -140px auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(218, 179, 92, .34), rgba(218, 179, 92, 0) 68%);
  pointer-events: none;
}

.eoffice-hero .container {
  position: relative;
  z-index: 1;
}

.eoffice-hero p {
  max-width: 720px;
}

.eoffice-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.eoffice-section {
  background: linear-gradient(180deg, #faf6fb 0, #fff 430px);
}

.eoffice-access-panel {
  position: relative;
  z-index: 3;
  margin: -48px auto 28px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 26px;
  background: linear-gradient(145deg, #321044, #4c1768 62%, #6d2789);
  box-shadow: 0 24px 60px rgba(61, 23, 80, .22);
  color: #fff;
}

.eoffice-access-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 179, 92, .28), transparent 68%);
  pointer-events: none;
}

.eoffice-access-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.eoffice-access-logo {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 18px;
  background: rgba(255, 255, 255, .95);
}

.eoffice-access-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eoffice-access-brand span {
  color: #ead29b;
  font: 700 10px Outfit, Sarabun, sans-serif;
  letter-spacing: .16em;
}

.eoffice-access-brand h2 {
  margin: 2px 0 3px;
  color: #fff;
  font: 800 30px Outfit, Sarabun, sans-serif;
}

.eoffice-access-brand p {
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: 12px;
}

.eoffice-access-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  margin: 22px 0 14px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(3, 20, 40, .32);
}

.eoffice-access-tabs a {
  flex: 1;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.eoffice-access-tabs a.active,
.eoffice-access-tabs a:hover {
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

.eoffice-access-tabs span {
  margin-right: 5px;
  color: #ead29b;
  font: 700 10px Outfit, sans-serif;
}

.eoffice-access-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.eoffice-access-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.eoffice-access-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .15);
}

.eoffice-access-card div {
  min-width: 0;
}

.eoffice-access-card strong,
.eoffice-access-card small {
  display: block;
}

.eoffice-access-card strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.eoffice-access-card small {
  overflow: hidden;
  color: rgba(255, 255, 255, .66);
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.eoffice-access-card b {
  color: #ead29b;
  font-size: 18px;
}

.eoffice-access-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: rgba(218, 179, 92, .16);
  color: #f1d99f;
  font: 800 9px Outfit, sans-serif;
  letter-spacing: .05em;
}

.eoffice-staff-card {
  background: rgba(4, 20, 39, .28);
}

.eoffice-access-note {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  text-align: center;
}

.eoffice-access-note span {
  margin-right: 5px;
  color: #58d39b;
}

.eoffice-college-login {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 24px auto 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(19, 5, 27, .24);
}

.eoffice-college-login label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 700;
}

.eoffice-college-login input,
.eoffice-college-login select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  color: #2d1735;
  outline: 0;
}

.eoffice-college-login input:focus,
.eoffice-college-login select:focus {
  border-color: #dab35c;
  box-shadow: 0 0 0 3px rgba(218, 179, 92, .2);
}

.eoffice-college-login select:disabled {
  cursor: not-allowed;
  opacity: .66;
}

.eoffice-login-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.eoffice-login-button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #dab35c;
  color: #321044;
  font-weight: 800;
  cursor: pointer;
}

.eoffice-login-button:hover {
  background: #e7c878;
}

.eoffice-college-login > small {
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  text-align: center;
}

.eoffice-login-message {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 18px auto -8px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 11px;
  text-align: center;
}

.eoffice-login-message.error {
  background: #ffe8eb;
  color: #962f3b;
}

.eoffice-login-message.success {
  background: #e7f7eb;
  color: #276d39;
}

.eoffice-password-notice {
  padding: 14px;
  border-radius: 12px;
  background: rgba(218, 179, 92, .13);
  text-align: center;
}

.eoffice-password-notice strong,
.eoffice-password-notice small {
  display: block;
}

.eoffice-password-notice small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .65);
}

.eoffice-session-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(19, 5, 27, .24);
}

.eoffice-session-bar strong,
.eoffice-session-bar small,
.eoffice-locked-college strong,
.eoffice-locked-college small,
.eoffice-locked-college span {
  display: block;
}

.eoffice-session-bar small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
}

.eoffice-session-bar button {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 9px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.eoffice-member-services {
  grid-template-columns: repeat(3, 1fr);
}

.eoffice-locked-college {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #eadfed;
  border-radius: 12px;
  background: #faf7fb;
}

.eoffice-locked-college small,
.eoffice-locked-college span {
  color: var(--muted);
  font-size: 10px;
}

.eoffice-locked-college strong {
  margin: 4px 0;
  color: #321044;
  font-size: 13px;
}

.eoffice-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 34px;
  position: relative;
  z-index: 2;
}

.eoffice-summary-grid article {
  padding: 20px;
  border: 1px solid rgba(76, 23, 104, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 38px rgba(61, 23, 80, .08);
}

.eoffice-summary-grid span,
.eoffice-panel-head span,
.payment-card-head span {
  color: var(--primary);
  font: 700 10px Outfit, Sarabun, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eoffice-summary-grid strong {
  display: block;
  margin: 8px 0 3px;
  color: #321044;
  font: 800 26px Outfit, Sarabun, sans-serif;
}

.eoffice-summary-grid small {
  color: var(--muted);
  font-size: 11px;
}

.eoffice-service-grid {
  align-items: start;
}

.eoffice-document-panel,
.eoffice-payment-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.eoffice-document-panel {
  padding: 26px;
}

.eoffice-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eoffice-panel-head h2,
.payment-card-head h2 {
  margin: 5px 0 6px;
  color: #2e103f;
  font-size: 26px;
}

.eoffice-panel-head p,
.payment-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.eoffice-filter {
  display: grid;
  grid-template-columns: 1.2fr .8fr auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #efe7f1;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #fbf7fc);
}

.eoffice-filter label {
  display: grid;
  gap: 6px;
  color: #5d4b66;
  font-size: 12px;
  font-weight: 700;
}

.eoffice-filter input,
.eoffice-filter select,
.payment-card select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfbfd;
  color: var(--text);
  outline: 0;
}

.eoffice-filter input:focus,
.eoffice-filter select:focus,
.payment-card select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.payment-card select:disabled {
  cursor: not-allowed;
  background: #f0eef2;
  color: #8d8790;
}

.eoffice-document-list {
  display: grid;
  gap: 12px;
}

.eoffice-document-list article {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.eoffice-document-list article:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 23, 104, .28);
  box-shadow: 0 14px 32px rgba(61, 23, 80, .08);
}

.eoffice-empty {
  margin: 0;
  padding: 28px;
  border: 1px dashed #dccde3;
  border-radius: 16px;
  background: #fbf8fc;
}

.eoffice-payment-card {
  position: sticky;
  top: 18px;
}

.payment-card-head {
  padding-bottom: 16px;
  border-bottom: 1px solid #efe7f1;
}

.payment-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.payment-steps span {
  padding: 10px 8px;
  border-radius: 12px;
  background: #faf5fb;
  color: #60356f;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.payment-college-location {
  padding: 14px;
  border: 1px solid #eadfed;
  border-radius: 12px;
  background: #faf7fb;
}

.eoffice-payment-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.alert.info {
  background: #eef5ff;
  color: #23527a;
}

@media (max-width: 1050px) {
  .eoffice-access-grid {
    grid-template-columns: 1fr 1fr;
  }

  .eoffice-staff-card {
    grid-column: 1 / -1;
  }

  .eoffice-summary-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }

  .eoffice-filter {
    grid-template-columns: 1fr 1fr;
  }

  .eoffice-filter .btn {
    width: 100%;
  }

  .eoffice-payment-card {
    position: static;
  }
}

@media (max-width: 650px) {
  .eoffice-hero {
    text-align: center;
  }

  .eoffice-hero-actions,
  .eoffice-filter,
  .payment-steps {
    grid-template-columns: 1fr;
  }

  .eoffice-hero-actions {
    justify-content: center;
  }

  .eoffice-summary-grid {
    grid-template-columns: 1fr;
  }

  .eoffice-access-panel {
    margin-top: -28px;
    padding: 20px 15px;
    border-radius: 20px;
  }

  .eoffice-access-brand {
    align-items: flex-start;
  }

  .eoffice-access-logo {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .eoffice-access-brand h2 {
    font-size: 24px;
  }

  .eoffice-access-tabs,
  .eoffice-access-grid {
    grid-template-columns: 1fr;
  }

  .eoffice-login-location {
    grid-template-columns: 1fr;
  }

  .eoffice-college-login {
    padding: 16px;
  }

  .eoffice-session-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .eoffice-access-tabs {
    display: grid;
  }

  .eoffice-staff-card {
    grid-column: auto;
  }

  .payment-college-location {
    grid-template-columns: 1fr;
  }
}
