.ap-wrap {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.ap-card {
  background: #ffffff;
  border: 1px solid #e6e8ef;
  border-radius: 22px;
  box-shadow: 0 10px 32px rgba(13, 18, 30, 0.06);
  box-sizing: border-box;
}

.ap-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  color: #0f172a;
}

.ap-subtitle {
  margin: 8px 0 0;
  color: #64748b;
}

.ap-brand-badge {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e7c24b, #caa046);
  color: #111827;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.ap-auth-wrap {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-auth-card {
  width: 100%;
  max-width: 520px;
  padding: 36px;
}

.ap-form,
.ap-user-form {
  margin-top: 24px;
}

.ap-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.ap-field label {
  font-weight: 700;
  color: #0f172a;
}

.ap-field input,
.ap-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d7dce7;
  background: #fff;
  color: #0f172a;
  box-sizing: border-box;
}

.ap-field input:focus,
.ap-field select:focus {
  outline: none;
  border-color: #caa046;
  box-shadow: 0 0 0 3px rgba(202, 160, 70, 0.14);
}

.ap-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  margin-bottom: 18px;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .18s ease;
  box-sizing: border-box;
}

.ap-btn:hover {
  transform: translateY(-1px);
}

.ap-btn-full {
  width: 100%;
}

.ap-btn-primary {
  background: linear-gradient(135deg, #e7c24b, #caa046);
  color: #141414;
}

.ap-btn-secondary {
  background: #0f172a;
  color: #fff;
}

.ap-btn-outline {
  background: #fff;
  border-color: #d7dce7;
  color: #0f172a;
}

.ap-btn-danger {
  background: #fff5f5;
  color: #c0392b;
  border-color: #f2c7c7;
}

.ap-btn-small {
  min-height: 40px;
  padding: 0 12px;
  font-size: .92rem;
}

.ap-alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin: 18px 0;
  font-weight: 600;
}

.ap-alert-success {
  background: #eef9f0;
  border: 1px solid #cfead4;
  color: #1f6b35;
}

.ap-alert-error {
  background: #fff3f3;
  border: 1px solid #f5caca;
  color: #a92929;
}

.ap-panel-grid,
.ap-user-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
}

.ap-profile-summary,
.ap-user-sidecard {
  padding: 28px;
  text-align: center;
}

.ap-profile-summary h2,
.ap-user-sidecard h2 {
  margin: 12px 0 8px;
  font-size: 1.65rem;
  line-height: 1.18;
}

.ap-profile-summary p,
.ap-user-sidecard p {
  margin: 8px 0;
  color: #64748b;
}

.ap-avatar-wrap {
  display: flex;
  justify-content: center;
}

.ap-avatar {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #f1e4b6;
}

.ap-avatar-fallback {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
}

.ap-dashboard-main,
.ap-user-maincard,
.ap-form-card {
  padding: 28px;
}

.ap-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ap-header-stack-mobile {
  flex-wrap: wrap;
}

.ap-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.ap-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ap-actions-bottom {
  margin-top: 12px;
}

.ap-form-grid {
  display: grid;
  gap: 0 16px;
}

.ap-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ap-col-span-2 {
  grid-column: span 2;
}

.ap-table-wrap {
  overflow-x: auto;
}

.ap-table {
  width: 100%;
  border-collapse: collapse;
}

.ap-table th,
.ap-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e6e8ef;
  text-align: left;
  vertical-align: middle;
}

.ap-table th {
  color: #0f172a;
  font-size: .95rem;
}

.ap-table td {
  color: #475569;
}

@media (max-width: 900px) {
  .ap-panel-grid,
  .ap-user-layout {
    grid-template-columns: 1fr;
  }

  .ap-form-grid-2 {
    grid-template-columns: 1fr;
  }

  .ap-col-span-2 {
    grid-column: span 1;
  }

  .ap-auth-card,
  .ap-dashboard-main,
  .ap-user-maincard,
  .ap-profile-summary,
  .ap-user-sidecard,
  .ap-form-card {
    padding: 22px;
  }
}
